Versioning @import of parent theme’s style.css

Context I built a child theme based on Twenty Thirteen which works quite well. After updating the parent theme to version 1.3, I noticed strange behavior with the styling which was caused by a cached parent theme’s style.css. Here is the content of my child theme’s style.css (omitting headers) /* =Imports styles from the parent … Read more

How do I dequeue a parent theme’s 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( ‘wp_enqueue_scripts’, ‘script_enqueuer’ ); function script_enqueuer() { wp_register_script( ‘site’, get_template_directory_uri().’/js/site.js’, array( ‘jquery’ ) ); wp_enqueue_script( ‘site’ ); wp_register_style( ‘screen’, get_template_directory_uri().’/style.css’, ”, ”, … Read more

Opinions and recommendations on the best barebones base theme [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for … Read more

How to customize the_archive_title()?

In my child theme’s archive.php, I have the following code for displaying the title of my archive pages: <?php the_archive_title( ‘<h1 class=”page-title”>’, ‘</h1>’ ); ?> But that displays my titles as “Category: Category Title” instead of simply the title without the prepended “Category: “. My first instinct was to override get_the_archive_title() from wp-includes/general-template. But from … Read more

get_template_directory_uri pointing to parent theme not child theme

The problem I am having is that the get_template_directory_uri is pointing to the parent theme like site/wp-content/themes/twentythirteen/myGallery/gallery_functions_include.php but I want it to point to my child theme which should be site/wp-content/themes/child-twentythirteen/myGallery/gallery_functions_include.php what I am using is include (TEMPLATEPATH . ‘/myGallery/gallery_functions_include.php’); 3 get_template_directory_uri() will always return the URI of the current parent theme. To get the … Read more