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

1
vote
1answer
56 views

Conditionally load child themes

I am wondering how to conditionally load child themes? I have a site that is going to change with the seasons. The underlying architecture will remain the same, just different styles and a few minor ...
2
votes
1answer
587 views

get_template_directory vs get_stylesheet_directory

I am trying to create a child theme and need to replace some files that are in sub-folders. In this post, it states 'get_stylesheet_directory(); will go to the current theme, child or parent ...
1
vote
3answers
369 views

How to remove a file included in parent theme with locate_template() via child theme?

In my theme I use locate_template() to load the various parts of my functions library. I'm looking for a way to not include one of those files when using a child theme. I tried adding ...
6
votes
2answers
800 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 ...
0
votes
1answer
99 views

Can't override template file in child theme

I have my WordPress installation running using a child theme based on a theme I have bought. The original theme has templates files in a template folder /original_theme/template/testimonial.php. I ...
0
votes
0answers
181 views

Child Theme version is set by parent theme, that isn't correct

I'm using Genesis as my theme framework, and while Genesis is at version 2.0.1, my theme is a different version (1.0). When it adds the style.css line in the header call it is appending the wrong ...
0
votes
1answer
230 views

Child Theme Performance

I've read a lot of discussions here and elsewhere about creating a child theme being the recommended way to create a theme based on some other existing theme. I'd like to know about possible ...
0
votes
1answer
259 views

WC Cart Edit Public Function [closed]

How would you go about making an edit to the following public function in your child theme? For instance, I would like to comment out the 'if statement' in the WooCommerce WC_Cart class function that ...
0
votes
1answer
71 views

Stylesheet overriding in Child theme

So here's my problem : I have two stylesheets in my child theme : style.css and style-premium.css (Which contains only modified CSS). My posts use one of these stylesheets depending on their category. ...
0
votes
1answer
73 views

How to add functionality to an existing theme (using child themes)

The reason why I ask such a question isn't because I don't know how to do so at all, but rather I think the way I've trying to go about it may be wrong and that I don't understand how wordpress works ...
1
vote
2answers
193 views

How to update WordPress core or themes and still have my child theme hooks work

I made a child theme based on the WordPress twentytwelve theme (i.e., the WordPress 'twentytwelve' theme is its parent). Some of the modification were done very simply by overriding style, using my ...
0
votes
1answer
29 views

How do I get rid of or change the footer in my child theme?

I want to remove the default theme name and "powered by WP" text in the footer of every page. I've created a child theme to hold all my customizations from the original theme so that my customizations ...
0
votes
1answer
78 views

Edit php files in subdirs in a child theme

I want to change a php file in a subdir of my theme folder. The path to that specific file is: /includes/sf-content-display/sf-post-formats.php I copied the file within the subdirs in my child theme ...
7
votes
2answers
550 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 ...
-1
votes
1answer
87 views

Custom field not showing

I am trying to get 3 images and their links which I have defined as custom fields. The custom field aren't displayed and when I var_dump() my get_post_meta() it returns string(0)"", what am i doing ...
0
votes
1answer
2k views

Change custom featured image size in twentythirteen child theme

I need to change the post thumbnail size in my child theme. I have read several answers on how to do this in twenty twelve, which is very similar, but nothing is happening when I use similar code for ...
0
votes
1answer
130 views

Remove post author using child theme

I'm using twentytwelve but I don't want the author to show on single post pages. How would I go about doing that without deleting it from the parent theme.
0
votes
0answers
134 views

Show post last modified date twentyeleven theme

Here is the code snippet i'm using to display last modified date in my twentyeleven child theme since i frequently update my posts but the problem is search engine is not displaying my post last ...
0
votes
2answers
130 views

Two stylesheets acting on one element

I am trying to style one element with max-width and I was having problems. I discovered that the child theme stylesheet was being augmented by the original stylesheet with width at the same time. ...
1
vote
1answer
138 views

Child Themes of Non-Wordpress Sanctioned Templates

I have created and used over a dozen Wordpress child themes for various websites. I have downloaded the themes from Wordpress. This time I wanted to use a theme outside of Wordpress' realm. I heard ...
0
votes
1answer
207 views

display last post modified date in genesis child themes

Since I frequently update posts so it’s crucial for me to display last modified date instead of post published date like following image. Its because I want search engine to display my post last ...
1
vote
1answer
44 views

a child theme not de-registering a patent javascript file

We're currently rolling out a number (>100) of wordpress sites where we're using a custom child theme and a holding page plugin. Most of our clients use IE8 as their browser (corporate policy) and ...
2
votes
4answers
798 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" ...
0
votes
1answer
47 views

Child theme template value for style.css for parent in different folder

I am making a child theme in the .../wp-content/themes/ folder however the parent theme that I am building on is in the .../wp-content/plugins/ directory. I am able to import the parent style.css ...
1
vote
3answers
707 views

Change Genesis <title> Tag from Page Template

I have made a page template for a Genesis theme in which I want to change the <title> tag but I can't find any API reference or example to do this. Does anyone have any idea how to do this?
0
votes
1answer
52 views

lost css when overriding themes templates

i have copied and modified the template file : header.php in my theme child and i kept the same path. here is the full file <?php /** * Your Inspiration Themes * * @package WordPress * ...
2
votes
2answers
112 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
1answer
246 views

Add post dates from child theme and change font size on homepage post

I know this is not difficult. I know it is supposed to be in the style.css in the child theme, but no font size I change seems to make any difference. The titles of the posts on my homepage never. ...
0
votes
1answer
99 views

How to Change MU/BuddyPress Group Blog New Installation Defaults

I am trying to work with a Multisite install of WordPress and modify the default "child" blogs in the network. The details are: -I have a main site built on Commons in a Box (CBOX) which is a ...
1
vote
2answers
150 views

two columns of posts on homepage, one of them “favorites”

I'm using a child theme of Twenty Twelve in wordpress. Here's where I am developing the site: http://internalcompass.us/castle/ You'll notice the two columns of posts on the homepage. I have one ...
0
votes
1answer
176 views

Next Previous Post in wordpress with previous / next link with title?

I recently tried the previous post and the next post button link. I do that with image in the left and right side of the site.Its working perfect.But i didn't know how to do this For Example: ...
0
votes
1answer
82 views

buddypress/wordpress dashboard pages vs website pages

trying to understand the buddypress/wordpress codex : in the admin dashboard/all pages,i can see only the main/parent pages like events groups members … now when i want to customize the inner pages ...
0
votes
1answer
2k views

Child theme error “Template is missing”

I created a child theme of twentytwelve using the following in style.css: /* Theme Name: WAMSA Template: twentytwelve version: 0.1 */ @import url("../twentytwelve/style.css"); In Appearance > ...
0
votes
1answer
60 views

Prevent child theme from inheriting a parent theme's required file

My parent theme has a file with a class that defines ads for that specific theme. It is required in functions.php. My child theme needs a duplicate file with different ad parameters so I would like to ...
0
votes
2answers
109 views

How to over-ride a file in a plugin?

I have a third party plugin that I'm using for a photo gallery (NextGen). However, with my black background, the loader gif animation looks pretty bad. I found a better loader gif and replaced the ...
0
votes
0answers
124 views

colorpicker WP 3.5 path to stylesheet when called from a child theme

What is the path to the 3.5 colorpicker stylesheet? wp_enqueue_style( 'wp-color-picker' ); I am trying to enqueue the color picker from a child theme but it does not load. I have added an admin ...
2
votes
1answer
105 views

How to transfer changes to a child theme?

I'm using a Template called D5 Design. They have an update, and I've made changes to a few of the PHP files in the Theme files. (changes to text on certain pages mostly) When I do the update, I ...
0
votes
1answer
73 views

How to make a child theme independent of parent?

I recently made a twentyten child theme, but I'm curious as to how I can make the child theme independent of its parent, ie exist without the twenty-ten theme folder present. I couldn't find any ...
0
votes
1answer
103 views

Child Theme - what is the scope of overwriting files?

I noticed that creating twentythirteen-child/archive.php overwrites twentythirteen/archive.php but creating twentythirteen-child/shortcodes/drop-cap/drop-cap.php does not overwrite ...
0
votes
1answer
88 views

Modular CSS and JS in Child Themes

Let's assume that twentythirteen/shortcodes/ exists and inside are folders with shortcodes. 1 folder = 1 shortcode. Each shortcode has: 1 PHP file, 1 CSS file, 1 JS file. ...
1
vote
1answer
422 views

Including style.css in Child Theme

Twenty Thirteen uses wp_enqueue_style( 'twentythirteen-style', get_stylesheet_uri() ); in functions.php. Wheter I use it or not use it in twentythirteen-child/functions.php the style.css from Child ...
0
votes
1answer
78 views

Including files in Child Themes

Twenty Thirteen uses the following in functions.php: require( get_template_directory() . '/inc/custom-header.php' );. When I copy /inc/custom-header.php to twentythirteen-child, it isn't replaced. I ...
-1
votes
1answer
133 views

Child Theme CSS Not Overriding Parent Theme In MultiSite Site

I've been banging my head on the wall for a while now trying to figure this out. I have a multisite setup currently with just the main site and a network site I added. The main site displays just ...
0
votes
1answer
91 views

Use admin options from parent theme in child theme

I am creating a child theme for the first time. I have created style.css (and imported parent theme's style.css in it) and also some new files and additional functions in functions.php. Now, I have ...
0
votes
2answers
200 views

Override parent theme function that is not hooked or in the functions.php file

I need to remove a function from the parent theme and replace it within the child theme. The function is called print_meta($meta_box). The function is not pluggable and it located in a random file, ...
1
vote
1answer
3k views

How do I cleanly override a plugin's CSS with a child theme?

folks! I have taken it upon myself to adhere to WordPress conventions so I can have a clean, sexy child theme. However, I am unsure how to proceed on a certain issue. I would like to override the ...
0
votes
1answer
523 views

change the Theme dynamically

Is there some way to change the page template dynamically using just a url I wanna use it in a demo theme, so for example when the user enters a particular URL ending with for example ...
0
votes
1answer
607 views

Conditionally remove comments and post meta in functions.php

I'm new to Wordpress and am coming from the point and click world of Joomla! what was easy there now involves some solid php knowledge to replicate in Wordpress ;) I'm try to conditionally remove ...
1
vote
1answer
94 views

How do WP child-themes work? [closed]

Ok, I have my main theme setup, and now I created a child theme with the name interio_child. From these instructions I understand that you only need to add the style.css file which makes the link to ...
1
vote
2answers
170 views

Child-theme breaks site

So, I have a child-theme with nothing but the required CSS file in it. Once I activated this child-theme my entire site is down. I end up with 2 questions: How can activating a child-theme with ...