Child theme only loads on home page

I scoured the code in the parent theme for any clues, I found none. The one clue I found was that the 404 page worked as expected, which tipped me off that something was up with the page-templates. To resolve the issue, I opened a post, changed the page template to another one (for example … Read more

Edit php files in subdirs in a child theme

Any suggestions? For one, read and interpret the error message. “Cannot redeclare require_once_child()” is pretty straightforward: Don’t give two functions the same name. I am uncertain whether your general idea is sensible in the first place, but should it be, this function require_once_child() { require_once(‘includes/sf-content-display/sf-post-formats.php’); } add_action( ‘init’, ‘require_once_child’ ); is all you need.

Functions.php in Child Theme – load JS

I also working on ait theme template, If you want to add new css & js file into child theme so u first create function.php file in child theme directory & after that u can write following code… <?php define(‘CHILD_THEME_DIR’, get_bloginfo(stylesheet_directory)); /* this is my child theme css folder */ define(‘CHILD_THEME_CSS_DIR’, CHILD_THEME_DIR . ‘/assets/css’); /* … Read more

What the mean about ‘child theme’?

The theme you’re talking about isn’t a child theme. If you read the description, you’ll see it’s “based on the awesome TwentyThirteen.” This just means it’s inspired by and probably borrows code from TwentyThirteen, but it’s not a child theme. As for a real parent-child theme relationship, the goal is that when the parent updates … Read more

Child Theme > Template

That “Template” line… this one… Template: twentyfourteen … is a required field for child themes. That is what tells WordPress that this is a child and not a stand-alone theme, and also which theme to use as a parent. Files not replaced by the child theme are loaded from the parent. Without that “Template” line … Read more