Child theming is a safe way to modify a theme. A child theme inherits a "parent themes" styles and then can selectively override. This alternative to "destructive" editing allows for safe updating of the parent theme and provides an easy way to undo theme changes.

learn more… | top users | synonyms

0
votes
1answer
558 views

WooCommerce: change display order of product short description and price [closed]

re: https://modestmix.com/shop/benefit-teas/go-the-fuck-to-sleep/ I'd like to move the price "$4.99–$24.99" below the product short description "Seriously. Drink a cup of this..." Any ideas how to ...
0
votes
1answer
42 views

How do child themes work?

I was creating a wordpress theme based on Twenty Fifteen and then someone suggested me to use a child theme instead. What's the biggest difference? I've heart both parent and child themes ...
0
votes
2answers
46 views

Different themes on one site

I'm correctly developing my own theme and so far I got: index, header, footer, functions and style files. The list will go on as I'm progressing with my theme. But I'm considering to use more than one ...
0
votes
1answer
110 views

Update Data parameter of a wp_localize_script() call

I'm working on a child theme, In my-page-template.php I have : //... $current_key= 5; //calculated result wp_localize_script('my_js', 'ajaxload', array('post_id' => $current_key)); In my_js.js ...
0
votes
0answers
41 views

How to Override Custom Post Type

I have spent HOURS trying to figure this out and keep failing. I have a theme that has a custom post type for Properties. I want to edit this post type to make it suitable for Canadian properties ...
0
votes
0answers
52 views

Child themes with multiple css files in parent

The Wordpress Codex states "If your theme has more than one .css file (eg. ie.css, style.css, main.css) then you will have to make sure to maintain all of the Parent Theme dependencies." What PHP code ...
1
vote
2answers
192 views

How to change Parent Themes in Child Theme CSS

I am confused as to how I'm supposed to switch parent themes in my child theme css. Right now my website protovest.com is using responsive theme but I want to change it to a theme called tesseract. ...
0
votes
1answer
130 views

How to override filter in child theme?

I'm trying to override a parent theme filter in a child theme; I must have the syntax wrong as the override is being completely ignored. Here's what's in my child theme's functions.php: //* remove ...
0
votes
2answers
244 views

How to add new sidebar widget area to child theme?

I want to create a new sidebar widget area in the header of my child theme. What would be the best way to do this? Here is the code for one of the sidebars in the parent theme: <?php add_action( ...
0
votes
1answer
41 views

What Are the Advantages of Using an mu-plugin

What is the advantage of putting code in a mu-plugin as appose to a plugin or child theme? What is the proper usage for the mu-plugin? I mean I can just put code in my child theme but is that the ...
0
votes
2answers
294 views

widgets_init actions not fired from functions.php's child theme

I need to add new sidebars for using them accordingly on different pages throughout my shop. I use Woocommerce and my own Storefront child theme. This is a snippet of what is in functions.php file ...
2
votes
1answer
50 views

Child themes & updates?

How the hell do you keep up with updates without a week worth of hassle? I must be incredibly stupid or something because I can't figure out how to make it painless. PS! This is a problem for those ...
1
vote
2answers
41 views

Does theme update also update a child theme zip

Total wordpress beginner here. I purchased a organicfood theme and when I got an updated version for it, among other files I also found organicfood child theme zip in main directory. I know that ...
1
vote
0answers
134 views

Child Theme's style.css not loading in mobile browser

Recently, I tried to customize some Wordpress page. I started by creating a child-theme of the twentythirteen template. Therefore, I've created a new directory, called it twentythirteen-child, added a ...
0
votes
0answers
105 views

Mystery YSlow Add Expires Headers Test Fails — Only on Imported CSS Files

I'm analyzing my site for performance, using a number of tools, including the YSlow plugin. Its a big site with lots and lots of files. I've set up .htacess to add an appropriate "Expires" header. ...
1
vote
0answers
68 views

Designing WP architecture for a site [closed]

(I posted this same question to wordpress.org some time ago, but got no answers. Hopefully Stackexchange has a more appropriate audience...) This question is going to be a long and winding one, and ...
0
votes
0answers
130 views

Adding a meta box fields to child theme options page

I created a custom options page for may theme using this code: add_action( 'admin_menu', 'jrl_add_admin_menu' ); function jrl_add_admin_menu() { add_menu_page('Options', 'Options', ...
1
vote
1answer
33 views

Plugin: register custom post types, child ready and performance best practices

I would find best practices in performance, clean code and child theme ready, for plugin that add some custom post types to my theme. What di you think about something like this? if ( ! ...
0
votes
1answer
239 views

How to add meta fields to custom taxonomy add/edit page?

I have a custom taxonomy 'issue'. I tried to add some meta fields to the add/edit issue pages in the dashboard using the method explained by Ohad Raz ...
0
votes
2answers
263 views

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 ...
0
votes
3answers
79 views

Child theme looks different from parent theme, and incorrectly displays parts

I've created a new Wordpress site using the Realistic theme. I added a logo, and this was the resulting webpage (ignore the sidebar): I want the website title to be displayed next to the logo, for ...
0
votes
0answers
80 views

Rewrite rules lead to blank page

Using a child theme, with custom post type article, trying to call a file from functions folder inside the child theme main folder (child-theme/functions), using this code in the child theme ...
0
votes
1answer
87 views

How to style injected code in header section?

Trying to add custom code to header section <head>..</head>of the blog by adding this code to child-theme functions.php // Add scripts to wp_head() function child_theme_head_script() { ...
0
votes
0answers
12 views

How to replace a widget by editing it in the child theme?

I am fairly new to wordpress. I heard that changing a theme widget in the theme itself is not a good practise. I want to edit a certain widget by copying it into the child theme. The widget in the ...
0
votes
1answer
116 views

How to style options page in dashboard?

working with a child-theme, adding a custom options page to dashboard in which admin can save details about the site. Using this code in the child-theme functions.php to create the options page: ...
0
votes
1answer
42 views

How to use parent theme functions in child theme functions.php file?

Parent theme required a foo.php file, and inside that file is a baz() function. I want to use that baz() function in functions.php of the child theme without recall foo.php file again. Are there any ...
0
votes
0answers
117 views

Toggle Visibility of Separate Javascript Files on Same Wordpress Page

Let me preface by saying my knowledge of JS is lacking at best and the concept of installing/loading/enqueueing a function on one area of the site and then calling that function in another area of the ...
0
votes
0answers
37 views

Where to put wp_head() when using switch_to_blog()

Where should the call to wp_head() be in my case. I'm using switch_to_blog() in order to keep one consistent header with its own widgets and menus across all multisites. If I call wp_head() in ...
0
votes
0answers
25 views

Is it possible to override a parent theme's translatable strings from within a child theme using a .mo file?

I have a theme that's properly setup for internationalization. I would like to override strings from the parent theme from within my child theme via a .mo file rather than copying over the template ...
-3
votes
1answer
108 views

I'm new in developing responsive Wordpress Theme, so which framework to use or work from scratch? [closed]

I'm totally new in developing responsive Wordpress Theme sector. But fortunately, I've heard of Frameworks like: Underscore, child-themes, Genesis !! What speciality each Framework has? I'm much ...
0
votes
0answers
19 views

Child Theme Upstream

I have a parent and child theme set-up, and I have created a "starter" child theme to kickstart development. All are hosted in Bitbucket. When I start a new project I fork the "starter" child theme. ...
2
votes
1answer
455 views

Adding PHP/HTML code inside page from custom template

I'm helping my son with his financial site with some custom programming. The first project for him is a custom spreadsheet using jQuery, flot, php, etc. I created a child theme, created a template, ...
0
votes
1answer
112 views

How Child Themes Directory works for plugins?

I am working on a Wordpress installation, that another developer used to do. I have an issue since he was working only with Child Theme Directory whereas I didn't. What I want to do, is to edit the ...
1
vote
1answer
178 views

Indirect modification of overloaded property WP_Post::$classes has no effect

I'm working on a child theme and while everything works the Walker_Nav_Menu and Walker classes are causing all the fuss. My parent theme overrides Walker_Nav_Menu as below: if ( ! class_exists( ...
0
votes
2answers
71 views

Related Posts: Changing Function For Posts Per Page

I am working on dailysuit.de, which features 8 related articles below the content in every post, defined by some tags. Now I wanted to reduce the number of "posts per page" from 8 to 4. Of course, I ...
0
votes
2answers
45 views

style.css of child theme is not overwriting parents style.css for .box

I am using latest wordpres. I have created child theme. I am trying to overwride the .box style of parent theme but it is not overriding it. If i do this in parent themes style.css it works. //This ...
0
votes
1answer
120 views

Jquery in Child Theme

I am new to Wordpress and I need help with integrating my own jquery into a child theme. I have this jquery tooltip which works but I want to include it into my wordpress child theme. Have a look ...
12
votes
1answer
198 views

How do I make my child theme re-apply the settings that were customised when its parent was active?

Scenario Pick 2015 theme. Customize various settings, such as background picture, header picture, site name and tagline. But don't touch the contents of any of the theme's files. Use Codex' Child ...
0
votes
1answer
157 views

Can't create child themes. “Stylesheet is not readable.”

I'm working on a website for my mom and I'd like to create a child theme to customize the theme I've found for it. I made a new folder in /wp-content/themes/ and created a new file in it called ...
0
votes
1answer
31 views

Removing parent theme CSS without editing parent theme

I am currently developing a child theme that builds on twentyfifteen as a parent theme. However a potential issue has cropped up that is causing a problem. I want to strip the CSS and JS assets from ...
0
votes
0answers
14 views

Translating a specific part (form) of NUVO theme (possibly a plugin)

Friend of mine asked me to help with his website, he already bought nuvo theme. there is a form for placing reservations witch is in english (I think its a plugin or something). I found the strings ...
0
votes
1answer
414 views

How to correctly enqueue the parent and child theme stylesheets in the creation of a child theme? [duplicate]

I have to create a child theme to implement some changes to a WordPress theme and avoid that these changes are lost when the theme will be update. So I have some doubt about how do it. I am ...
0
votes
1answer
53 views

How to Create a Child Theme for a Site that Already has a lot of Customization?

I just took over a bunch of old WordPress sites that have no child themes. The sites are heavily customized and not just in the styles.css file. Header.php, functions.php are all suspected to be ...
1
vote
1answer
525 views

Enqueue stylesheets if parent theme has more than one .css file

I just learnt about creating child themes from the Codex , it says to add add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' ); function theme_enqueue_styles() { wp_enqueue_style( ...
1
vote
1answer
182 views

How can you change default color scheme in a Twenty Fifteen child theme?

Right now I am editing a Twenty Fifteen Child theme (Five Beers to be exact) and I'm wondering if there is a way I can add my own color scheme to the customizer and make it the default color scheme. ...
1
vote
1answer
180 views

Add pre-existing meta box to new custom post type

I have a parent theme that creates a number of custom meta boxes that are added to the "post" and "pages" post types as well as a number of post types also created by the theme. In my child theme, I ...
0
votes
0answers
170 views

Underscores Starter Theme for building a Parent Theme

I'm starting a new project to create a Parent Theme which supports AngularJS (Web App theme), I was looking for a starter theme to begin with. but I got so confused about which one would be the best ...
0
votes
2answers
120 views

How to store / access files in child theme folder

We are moving a HTML/PHP site to WordPress and want to use as much of the current code as possible. We are using the Avada theme, and have created an Avada child theme folder with the 2 required files ...
1
vote
2answers
37 views

Activate Child Theme with Codex

I know there is an option to have the following code in the wp-config.php file: define('WP_DEFAULT_THEME', 'x-child-integrity-light'); define( 'TEMPLATEPATH', 'wp-content/themes/x'); I currently ...
0
votes
0answers
163 views

Meta box from child theme

I've done some searching and can't find exactly what I'm looking for. I've found this, removing meta boxes but I need to add. I did try changing that to add meta box. I'm wondering if it is possible ...