background preloader

Child Themes

Child Themes
Languages: বাংলা • English • Italiano • 日本語 • 한국어 • Español • Nederlands • Français • Português do Brasil • Русский • Slovenčina • ไทย • 中文(简体) • 中文(繁體) • Македонски • (Add your language) A child theme is a theme that inherits the functionality and styling of another theme, called the parent theme. Child themes are the recommended way of modifying an existing theme. Why use a Child Theme? There are a few reasons why you would want to use a child theme: If you modify a theme directly and it is updated, then your modifications may be lost. How to Create a Child Theme Creating a Child Theme from an Unmodified Parent Theme A child theme consists of at least one directory (the child theme directory) and two files (style.css and functions.php), which you will need to create: The child theme directory style.css functions.php The first step in creating a child theme is to create the child theme directory, which will be placed in wp-content/themes. A couple things to note: <? Template Files <? if ( !

Why You Should Never Search For Free WordPress Themes in Google or Anywhere Else | WordPress News at WPMU.org There are so many free WordPress themes out there it can put your head in a tail spin. So in an effort to help you sift through the good and the – let’s face it – crap, we’ve put together this ultimate guide to free WordPress themes. This post is your one-stop, all-you-can-eat resource for information about free WordPress Themes. There’s an overwhelming number of free themes available – just search Google. Why should you fork out your hard-earned cash for a premium themes when there are thousands, if not tens of thousands, available for free? And you’re right. But like most things that are too good to be true, free themes come with a catch. Stick around, but in this very comprehensive look at free themes, I’ll let you in on everything you need to know about free themes and where you can find safe and reliable options. In this post we’ll cover: What is a Free WordPress Theme? What is a Free WordPress Theme? A free theme is, well, free. What’s the GPL? Creative Commons Free Themes Are Free! Themify

Template Hierarchy Languages: English • Français • Italiano • 日本語 • 한국어 • Русский • Español • Português do Brasil • 中文(简体) • (Add your language) Introduction WordPress Templates fit together like the pieces of a puzzle to generate the web pages on your WordPress site. What this article is about This article seeks to answer the following question: Which template file(s) will WordPress use when it displays a certain type of page? Who might find this useful Since the introduction of Themes in WordPress 1.5, Templates have become more and more configurable. Using Conditional Tags WordPress provides more than one way to match templates to query types. The Template File Hierarchy The General Idea WordPress uses the Query String — information contained within each link on your website — to decide which template or set of templates will be used to display the page. With the exception of the basic index.php template file, Theme developers can choose whether they want to implement a particular template file or not. Examples

How to Create a WordPress Child Theme (Video) Are you looking to create a child theme in WordPress? Once you learn the WordPress basics, you probably want to learn how to customize your WordPress site. We believe that child themes are a great starting point for anyone looking to customize WordPress themes. In this article, we will show you how to create a child theme in WordPress. Video Tutorial: For those who don’t want to watch the video, you can continue reading the article below. Why You Need to Create a Child Theme? Child themes are considered the best way to customize your WordPress themes. You can learn more about child themes in our article What is a WordPress Child Theme? Requirements A basic understanding of CSS/HTML is required, so that you can make your own changes. We recommend you to practice on your local development environment. Getting Started Any good WordPress theme can be used as a parent theme. Creating Your First Child Theme Open a text editor like Notepad and paste this code: Customizing Your Child Theme Final Result

Fighting the Space Between Inline Block Elements I've seen this come up a couple of times lately on Twitter and then an interesting Dabblet so I figured it would be an important thing to document. Here's the deal: a series of inline-block elements formatted like you normally format HTML will have spaces in between them. In other words: <nav><a href="#">One</a><a href="#">Two</a><a href="#">Three</a></nav> Will result in: We often want the elements to butt up against each other. This isn't a "bug" (I don't think). Here's some ways to fight the gap and get inline-block elements sitting directly next to each other. Remove the spaces The reason you get the spaces is because, well, you have spaces between the elements (a line break and a few tabs counts as a space, just to be clear). <ul><li> one</li><li> two</li><li> three</li></ul> or <ul><li>one</li ><li>two</li ><li>three</li></ul> or with comments... <ul><li>one</li><li>two</li><li>three</li></ul> They're all pretty funky, but it does the trick. Negative margin Skip the closing tag See Share On

WordPress Security Hacks and Tricks | WPZine Following on from my recently article about WordPress security plugins there are a number of ways you can shore up your security by using a few choice snippets and hacks. Please do ensure you backup before making any changes to your files, the .htaccess if broken can cause your blog to stop working completely! Login Name The WordPress default is “admin” which basically leaves the hacker just needing to workout your password, don’t make it easy for them! Keep Your Install Up To Date By keeping your WP install up to date you ensure all the last patches and fixes are installed thus any known exploits will not work on your blog. Delete Files Sounds simple but many people leave in the readme.html files in the root folder, delete this as the readme.html file has the version number of your WordPress install within. Delete Install File You can delete the wp-admin/install.php file as its not needed once WordPress is installed, having it just laying around can leave your blog vulnerable to attack.

Using Action Hooks in WordPress Child Themes In this post we’ll review how to write a PHP function and go over the basic idea of how you can use Action Hooks in your WordPress Theme. We’ll take a look at a practical example of injecting a Welcome Blurb into your Theme without touching the existing code and we’ll also look at how to remove existing content being injected into Theme Hooks. Packing Up A Function Action hooks are in a lot of WordPress Themes nowadays. If you want to get started with them we’re going to have to take a look at how to write a PHP function again. So that’s how you write a PHP function. You’ve seen the same thing before with WordPress functions like wp_list_pages() or the_content(). The Basic Idea Behind Action Hooks A lot of really smart theme developers have started adding what are essentially empty functions to their themes ready to be filled up with stuff. WordPress Themes use a pair of default hooks called wp_head() and wp_footer(). Adding Content To An Action Hook Removing Existing Content From Actions

How To Create And Customize A WordPress Child Theme Increasing Performance of HTML and JavaScript on Mobile Devices, Especially iOS – the.ichibod.com HTML rendering and JavaScript execution performance on iOS is still a far cry from native code. Meanwhile, I recommend that anything targeting a WebKit (or mobile browser for that matter) be optimized for the device. This article is all about optimization. Different than Desktop The biggest consideration is that mobile devices are underpowered by comparison to their desktop counterparts. To obtain desktop-like performance. I am a fan of jQuery, though when it comes to mobile, I highly recommend not using it. zepto.js is looking promising for WebKit specific mobile browsers. Images Images are a big source of slowdown on iOS in particular. Every situation is different, so there are no set rules with regard to images. Keep images smallTile the smaller images, if possibleAvoid images in excessive pixel dimensions (I believe iOS mentions 1024 pixels)Avoid complex SVG graphics Hardware Acceleration iOS has a feature in mobile Safari (and UIWebView) that allows items to be hardware accelerated.

Hosting With GoDaddy? Might Want To Rethink That Decision. | Smackdown! Posted on May 13th, 2010 at 10:04 am by Michael VanDeMar under blogthropology, coding, customer service, Wordpress, WTF One of the services I offer people is cleaning their WordPress installations of hacks and infections, mostly for those who might not have the time or technical expertise to follow my hacked WordPress cleaning guide. Therefore when something happens that increases the number of people getting hacked, such as when a new exploit is discovered, or a security hole in a large host starts getting exploited (like what happened with Network Solutions last month), I get an increase in the number of people requesting help cleaning things up. This month it started happening with a large number of GoDaddy customers. GoDaddy.com did send out a notification to customers affected by this issue. GoDaddy keeps insisting that the problem is due to outdated WordPress installations, and that staying up to date and site security is the responsibility of the customer, not of GoDaddy.

Related: