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. ...
13
votes
1answer
7k 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 ...
9
votes
1answer
8k 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 ...
8
votes
6answers
5k 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
432 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
2answers
567 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 ...
7
votes
2answers
717 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
3answers
906 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
1answer
4k 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( ...
6
votes
2answers
821 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
3answers
105 views

Is it possible to override the result of get_template_part()?

I'm working on a child theme, I strongly prefer not to override the main template files in order to maintain simplicity of the child theme as well as minimize the amount of code and maintenance over ...
4
votes
4answers
354 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
150 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
25k 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
424 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
873 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
3k 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
756 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
3answers
510 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
1answer
230 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
1answer
85 views

jquery script not enqueued in child theme

I need a little bit of insight here with the following problem? I've created a child theme called 'test_child' which I am trying to extend in the following way: This is the test_child/functions.php ...
3
votes
2answers
727 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
71 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
2k 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
521 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
401 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
921 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
834 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
2answers
3k views

Adding a second email address to a completed order in WooCommerce

Before I ask this question, I know there is a (legitimate) hesitation to answer questions here about Woo products since they have their own support and their users should be encouraged to use that. I ...
2
votes
1answer
697 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
1answer
550 views

Overiding functions.php with child-theme

I've been searching for a proper solution to override functions and hooks in my parent theme's functions.php. My parent theme has: define('TS_INC', TEMPLATEPATH .'/inc'); require_once( TS_INC ...
2
votes
2answers
80 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
116 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
117 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
304 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
193 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
6k 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
2answers
62 views

How to stop PHP code running when in a child theme

I understand you can add extra CSS on top of the parent theme, but how do you remove PHP code from functions.php? I want to remove the Masonry plugin in twentyfourteen theme, and have located the ...
2
votes
1answer
59 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
224 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
976 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
776 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
3answers
355 views

Wordpress Multisite: Have the same header and footer of main-blog on all sub-blogs

I'm trying to do the following: I have a Main-Blog and dozens of subblogs. I want all the subblogs to use the same theme (or child-theme, not sure yet) but have the same navigationitems of the ...