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

Generally speaking, Child Themes were originally intended to be able to do two things: Override parent Theme CSS Override parent Theme template files I doubt that the Theme developer intends for the /function-includes/theme-functions.php file to be overridden by a Child Theme. Functional files are usually a core component of the Theme, and allowing a Child … Read more

TwentyTwelve versioning

How it’s NOT done in WordPress The following example is the opposite of how one should do it. Bad practice following: <style type=”text/css”> <!– /* … Definitions that are hard to override or get rid off are here … */ –> </style> This is another example how you should not do it: <link rel=”stylesheet” type=”text/css” … Read more

Child theme error “Template is missing”

I found the problem. I went to edit the stylesheet in WordPress’s editor, and saw that the stylesheet’s code had been moved onto 1 line. This meant the top comment section was also on one line, and the Template: twentytwelve was not distinct. Adding line breaks resolved the problem.

WordPress Child Theme Calling Images

You could try the following if you have a child theme and trying to reference your images from that file location, onto your custom .php files… <img src=”https://wordpress.stackexchange.com/questions/226211/<?php echo get_stylesheet_directory_uri(); ?>/assets/images/your-custom-image.jpg” /> Just make sure in your child theme location, you really have a child folder structure of… assets -> images

Child theme TEMPLATEPATH issue

In your context you use the wrong constant. You must use the constant STYLESHEETPATH for the path to the active child theme. The constant TEMPLATEPATHget the path to the parent theme, that was referenced in the child theme. But, a important hint. The constant is deprecated, see the ticket #18298 for more information. That’s is … Read more