Articles of child theme

Twenty Ten child theme has post on an inner page. Cant get that page to use my desired template

I have a child theme based on Twenty Ten. I have split out the sidebar and secondary side bar so they can be used on different pages. sidebar.php file: <div id=”primary” class=”widget-area” role=”complementary”> <ul class=”xoxo”> <?php /* When we call the dynamic_sidebar() function, it’ll spit out * the widgets for that widget area. If it […]

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 own css properties and selectors in the child theme’s style.css file (like different property values for the #page div, or whatever). Other modifications […]

Change labels of custom post type via child theme

I have a WordPress parent theme that uses a custom post type called portfolio, which I’d like to change to property. I’d like to have all of the contextual elements changed to show property like, “show properties”, “add new property”, “delete property”, etc. I know I can do this by updating the parent theme, but […]

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 Theme is loaded (it is always loaded) and style.css from parent theme can never be loaded. This is an exception to other files added via wp_enqueue_style(), right? It doesn’t behave like all […]

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 locate_template(‘same_file_name.php’, false); to my child theme’s functions.php but it is still included. CLARIFICATION EDIT: I don’t want to prevent this […]

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 > Theme, the template is listed with error: The following themes are installed but incomplete. Themes must have a stylesheet and a template. Description: Template is missing. The codex says […]

Child theme on style.min.css

I am trying to create a child theme, and have come up with this. <?php // Exit if accessed directly if ( !defined(‘ABSPATH’)) exit; // BEGIN ENQUEUE PARENT ACTION if (!function_exists(‘chld_thm_cfg_parent_css’)): function chld_thm_cfg_parent_css() { wp_enqueue_style(‘chld_thm_cfg_parent’, get_template_directory_uri() . ‘/style.css’); wp_enqueue_style(‘chld_thm_cfg_parent’, get_template_directory_uri() . ‘/style.min.css’); } endif; add_action(‘wp_enqueue_scripts’, ‘chld_thm_cfg_parent_css’); // END ENQUEUE PARENT ACTION The purpose of this […]

Unhook action from child theme

I have decided to use a WooCommerce Storefront child theme called Galleria, when I have previously used the Storefront theme I have used the common remove_action to unhook the defaults and replaced with my own add_action. However as Galleria is a child theme of Storefront, it has its own add_action in the file class-galleria-structure.php though […]

Give priority to child theme stylesheet

I’ve created a child theme and the main style.css works perfectly fine. However, the parent theme has another stylesheet which I want to import and create the same for child theme and use it instead. Parent theme structure – ./woocommerce/woo.css Child theme structure – ./woocommerce/woo.css (Manually created) Now, I enqueued both the stylesheets in the […]

Child Theme not loading parent CSS

I’m using the MyStile theme for a new site. I’m trying to create a child theme so I can modify the theme and not have my changes overwritten, however once I activate my child theme, the whole styling seems to go from the website all together. I’m guessing the issue here lies somewhere when it’s […]