Child theming is a safe way to modify a theme. A child theme inherits a "parent themes" styles and then can selectively override. This alternative to "destructive" editing allows for safe updating of the parent theme and provides an easy way to undo theme changes.

learn more… | top users | synonyms

34
votes
3answers
2k views

Opinions and recommendations on the best barebones base theme [closed]

Preamble I'm finding myself building more and more WP sites "from scratch" as it were (ie: ignoring any theme designs out there and just creating a design wireframe purely on the needs of the client. ...
12
votes
1answer
6k views

How to override parent functions in child themes?

I've been reading around and trying to figure out how to do this, but for some reason I can't seem to override parent functions in my child theme. I'm using TwentyTen as a parent - can anyone tell me ...
8
votes
6answers
4k views

How to *remove* a parent theme page template from a child theme?

I'm using the TwentyTen theme to create a child theme, but I can't seem to get rid of the 'One column, no sidebar' page template that is in the TwentyTen parent theme. I thought just copying it over ...
8
votes
3answers
397 views

Starter Theme vs Parent Theme? Pros and cons

I'm building a theme to be used as an example for other websites for the company I'm working. In another project we used the Hybrid Parent Theme and was really easy to build, but REALLY hard to ...
7
votes
1answer
6k views

How to override javascript files in child theme?

I'm loading some javascript files in the parent theme. The path in the parent theme is "scripts" > "custom.js". In the child theme, I'm creating the same path (scripts > custom.js) and changing some ...
7
votes
2answers
473 views

how can I add an icon/image for a child theme?

I have set up a child theme of the twentyten theme. In the themes section that under the appearance, I can only see the child theme's title, author name, and a grey box above it. How can I add an ...
6
votes
2answers
395 views

How do themes provide support for child themes?

One of the requests on themeforest is that themes are required to provide child theme support. I know what child themes are, although I haven't worked a lot with them, but I would like to know is ...
6
votes
3answers
795 views

Child Theme vs Duplicate Theme Renamed

Okay, I quite often see people talk about child themes and the reasons for using them instead of modifying the existing theme, but they all seem to center around the idea that if the parent theme is ...
6
votes
2answers
545 views

Do Child-Themes automatically load the Translation from the Parent-Theme?

Is it enough to just create a child-theme - let's say technically without adding anything else but the bare minimum style.css - to have the translation of the parent-theme being used automatically for ...
5
votes
1answer
3k views

How do I dequeue a parent theme css file?

My parent theme (Starkers) adds a CSS file that I'm trying to remove (I want to use @import instead so I can override styles more easily). Starkers has the following in its functions.php: add_action( ...
4
votes
4answers
349 views

One Child Functions.php for Multiple Child Themes

I have a wordpress setup that I use for clients with around 30 or so child themes that they can choose from. Each child theme has it's own functions.php file currently. Is it possible to setup just ...
4
votes
7answers
4k views

Include files in child theme functions file

Typically in my theme function file I'll require other files to keep things neat. require_once("foo.php"); Now working in a child theme I'd like to do that same. I'm adding custom admin options and ...
4
votes
1answer
127 views

Adding Action Hooks In Parent Theme For Easier Child Theme Customization

I was wondering why isn't anyone (haven't be able to find one with it) adding custom hooks an the beginning and at the end of the theme's function.php for theme development. The reason I'm asking ...
4
votes
3answers
20k views

WooCommerce shop page to use my custom template

Before asking the question I want to tell you that I have already asked the question in http://stackoverflow.com/questions/15025213/wordpress-woocommerce-template-file-overiding I am using the ...
4
votes
1answer
1k views

Optimal approach for replacing the 8 header images in a child theme?

After creating a child theme which is made of style.css only (base on twentyeleven), the time has come to replace the images. I found this great tip for accomplishing this by hacking the functions in ...
4
votes
2answers
350 views

Child Theme: how to override variables?

I'm going to build my first Child Theme. I understood how to override functions (hope!), but how to override variables? For example, in a Premium Template I want to change the values of feed variables ...
4
votes
1answer
759 views

Best practices - Should I create a child theme vs. customizing a framework theme? (such as HTML5 reset)

I have built quite a number of wordpress sites and have worked frequently with the HTML5 reset theme. My workflow has been to simply edit the files in the theme because I often use quite a bit of ...
3
votes
4answers
2k views

how to call files in child theme?

I created a child theme "my-theme" . In style.css I wrote nothing just the mandatory details I wrote there. /* Theme Name: my-theme Theme URI: http://example.com/ Description: Child theme ...
3
votes
2answers
127 views

something like is_childtheme()

in the functions.php of a parent theme, I would like to check for wheter the theme is being run directly, or it is run via a child theme. Is there a conventional way of doing this? I cant find the ...
3
votes
5answers
2k views

Removing custom background and header feature in child theme

I am creating a child theme using twentyten as my base. I am looking for a way to remove the features of adding custom header and background without touching functions.php file in the parent theme. ...
3
votes
3answers
649 views

Child theme functions.php do I use php open and close tags?

I setup a child theme which works fine. It's importing the main style.css and has custom css styles along with custom header.php and footer.php files When using functions.php in a child theme it's ...
3
votes
2answers
1k views

How do I remove a require_once admin panel from the parent theme from the child theme functions.php?

In the parent theme, the following is at the bottom of the functions.php file. require_once(TEMPLATEPATH . '/admin/admin-menu.php'); In the child theme's function.php, this code will include the ...
3
votes
1answer
3k views

How to override function in functions.php of parent theme?

I have created child of theme twentyten. I tried to override function written below /** * Returns a "Continue Reading" link for excerpts * * @since Twenty Ten 1.0 * @return string "Continue ...
3
votes
1answer
222 views

Hard Code Pages into a Theme for a Network (multisite) Installation

I'm creating a multisite network and I am looking for a way to have it so new blogs that are created have a couple of standard pages set up automatically. The purpose of these pages will be to ...
3
votes
2answers
423 views

Developing a childtheme, how to disable the parents templates?

I am developing a simple child theme based on twentyeleven. But i notice twentyeleven has a showcase and sidebar template when you add a new page. How can i disable these templates from functions.php? ...
3
votes
2answers
611 views

How to add Color Picker in Theme Options for the following?

I have a landscaping09 theme. This is what I want: A theme options page with the following options: ->Theme color background change (with colorpicker) or url of the image ->General Navbar color ...
3
votes
1answer
38 views

Theme customizer: How do you grab the value later?

I'm working on a custom site, doing all my work in a child theme. I need to add one variable, slider speed, to the customize control system. I've been able to modify the custom controls via the ...
3
votes
1answer
1k views

How to edit bbPress template files - WordPress + BuddyPress + bbPress?

I am using BuddyPress 1.6.1, bbPress 2.1.2 and WordPress 3.4.2 I follow the guide here. In the end, I did the trick pointed out by Sarah Gooding because mywebsite.com/forums was blank right after ...
3
votes
1answer
518 views

Post format selector in Thematic child theme post class

I'm having a very hard time implementing post formats in my Thematic child theme. I am able to add post format theme support and add content via the big conditional statement, but the .format-video, ...
3
votes
1answer
398 views

How do I create a magazine type menu - sub-menu setup using wp_nav_menu and child of twentyten? [closed]

I'm trying to create a menu and submenu with a child theme of twentyten, similar to this at the LA Times: http://www.latimes.com/ where when the site is first opened, it displays a set of childs, and ...
2
votes
3answers
865 views

Optimal solution to develop a wordpress theme?

What i was doing previously, are as follows - I copy the wordpress base theme (like twentytwelve in wordpress 3.5) Rename the folder and converted index.html of my HTML to index.php for wordpress ...
2
votes
4answers
497 views

Hide a div that is part of all pages on one specific page

How can I hide a div (which contains an image) for a specific WordPress page? I believe my page id is 46: Here is the div I am trying to change: <div id="static-footer-image" ...
2
votes
1answer
658 views

Difference between stylesheet_directory and template_directory

What is the differene between stylesheet_directory and template_directory? Is that representing Child theme and Parent theme?
2
votes
2answers
77 views

When developing a distributable Theme, does it HAVE to be “inheritable”?

I'm currently developing a complex Theme (or framework, if it can be called that) for my own personal use. However, in the event that it becomes appreciated to the public - does it necessarily HAVE ...
2
votes
2answers
89 views

is there a simple way to list every templates / php files used to generate a specific page?

To customize a theme , it is not always easy to trace every files that are used and find out which one do what . For example i' like to find out how my menu is generated so i can add some conditions ...
2
votes
2answers
108 views

TwentyTwelve versioning

I'm making a child theme for TwentyTwelve, but my host is caching my files, so I'm not seeing the changes I do to my style.css file. Is there a way to version the stylesheet for my child theme? How ...
2
votes
2answers
245 views

Should I ask a theme developer to use locate_template rather than require_once

I was creating a child theme today and needed to overwrite a php file which was included using this code in the themes functions.php file require_once( get_template_directory() . ...
2
votes
1answer
165 views

Nesting Functions within Functions

I'm looking for an efficient way to group a series of separate but related functions for a child theme I'm designing using theThematic Theme Framework. Thematic does a great job of providing plenty of ...
2
votes
2answers
5k views

How to add code to Header.php in a child theme?

I'm creating a child theme for the first time and I had a few questions regarding code added to header. In a non child theme there is certain code I add to my header.php file such as google ...
2
votes
1answer
52 views

Overwrite CSS with without deleting it

I have some css in the theme that I am using, I want to keep the stock style.css without deleting any of it. I want to use my child-theme style.css to remove or hide some values of a class. I would ...
2
votes
3answers
1k views

How to change the height of featured image in Twenty Eleven child theme

I am trying to change the height of my featured image to 350px in my child theme for Twenty Eleven. Can anyone help?? Note: I am using Twenty Eleven and there is no functions.php file in my child ...
2
votes
1answer
208 views

How could child theme be different than parent theme if I haven't made changes?

I made a child theme defined as so: /* Theme Name: GlenTheme Description: Modified Gallery 2.3 theme Template: gallery */ @import url("../gallery/style.css"); The only file in the child theme is ...
2
votes
2answers
790 views

Do all files in child theme override the parent?

I'm curious if other PHP code files besides functions.php, WP template files and style.css in a child theme actually override the same file in a parent them? I am working with a client that has a ...
2
votes
2answers
733 views

add generated stylesheet from parent theme after child-themes style.css

I have a child-theme -> parent-theme setup, where I need to have stylesheet called generated.css loaded in addition to the style.css file added by the active child-theme. The generated.css file is ...
2
votes
1answer
572 views

Assign Menus to Theme Locations with theme activation

A site is using "child1" named child theme. When this site switches to other child theme named "child2", their widgets are moving too but theme locations are not moving. How can i auto assign menus to ...
2
votes
1answer
389 views

Use theme constants in plugin?

I'm creating a plugin version of the Roots Theme function additions - to make it a bit more portable, but have run into a snag. Part of what Roots does is add htaccess rules based on the current ...
2
votes
1answer
130 views

PHP Notices appear when browsing any page in admin, but only for child theme, using code from WP Codex

My php_error.log in my console (locally on OSX) is reporting 3 PHP Notices. The PHP Notices only appear when browsing each admin page in the back-end for a site (running multisite) that uses a child ...
2
votes
2answers
160 views

Can a child theme based on Starker theme be released as free to use theme for public use?

I created a child theme named "Naksh" based on "Starker" theme.Now i want to show case it on wordpress,so can I release it under GPL.Also is there any money I need to pay to Starker theme creator for ...
2
votes
1answer
704 views

Duplicate and alter sidebar for Twenty Eleven

I'm trying to create own template including submenu instead of the regular sidebar in Twenty Eleven. Although I manage to create and select my new template the page ends up with bad CSS. Here is ...
2
votes
1answer
262 views

I want to add a class to main div on a template. how can I do that?

I'm building a template for twentyten child theme. I need to add a class in in the template page, but not in other pages.My template inherits the header and footer, so, I can't change any markup ...