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? 1 1 Kind of – the template_directory is the directory of your parent theme. The stylesheet_directory is the directory containing the primary stylesheet in use (which, if you have a child template will be the in the child directory, … Read more

Why is the Child Theme Stylesheet Not Loading?

I’m using the HashOne theme and created a child theme in order to make various color changes to our website. However, the changes I’ve made to the child theme stylesheet are only taking place in the certain sections of the site, while other changes are deferring to the parent theme. I created a functions.php file … Read more

Issues enqueueing parent & child theme stylesheets with revised Codex method

This post brings up a few questions I’ve encountered pertaining to the recent changes around stylesheet enqueueing methods brought up in this thread and this thread. The issues I encountered came up in a general use-case scenario, using a widely used and well-maintained parent theme that is specifically child-theme ready on a WP 4.0 install. … Read more

Child theme – Overriding ‘require_once’ in functions.php

I am attempting to modify a wordpress theme with a child theme. My parent theme has the following function in its functions.php: require_once(get_template_directory() . “/includes/theme-styles.php”); I would like to change this to include my own stylesheet: something like: require_once(get_template_directory() . “../child-theme/includes/theme-styles.php”); I can include this function in my child theme’s functions.php, but because the child … Read more

Override parent theme translation on child theme

I have a parent theme that uses correctly load_theme_textdomain() to load all the translated strings in many languages. Then I created a child theme that uses load_child_theme_textdomain() to achieve the same thing for its strings. There are certain translated strings for a particular language on the parent theme that I’d like to replace/override in the … Read more

how do I queue my Child stylesheet/s *after* every Parent stylesheet/statement?

I’m using the well-written Oenology theme by Chip Bennett as the Parent to my own Child theme. In my development process, I’ve discovered that there are some challenges for people writing Child themes when it comes to controlling styles. I’ve just discovered that my main style.css file gets loaded before every other stylesheet link or … Read more