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
28 views

I want to edit it on my laptop as a child theme and transfer the files to my server. I don't know how

I have big gaps in my knowledge and right now I know I'm doing things wrong, and I want to buckle down and fix that. I have a wordpress site using the "shape" theme, and I directly edited the code ...
0
votes
0answers
82 views

Override parent theme files in subdirectory

How do I tell wordpress to use the child theme's version of a file rather than the parent's version? I found online that the following line should be added to my child theme's functions.php file, but ...
0
votes
0answers
10 views

Wordpress image selector in theme

I'm new to wordpress theme developing, I'll be happy if I could use your help. I'm trying to simulate the post thumbnail metabox content in my theme. I need the ability to upload and choose images ...
0
votes
1answer
61 views

Child Theme problems

I have a Premium WordPress theme that I created a child theme on. I can change the regular WordPress php pages and the css on the parent theme inside the child theme with no problems. Inside the ...
0
votes
0answers
65 views

Featured images same height

I have a theme (called Origin) from Elegant Themes. I'm using a child theme. I need to programmatically have all the featured images set to the same height for the home page. I can do this in CSS but ...
0
votes
1answer
131 views

Extracting Distance from FacetWP Proximity Function to Display in Wordpress Template

I am quite new to Wordpress & Php coding in general, I have a relatively simple theme that I have been working with that contains a custom post type that stores latitude and longitude. Each post ...
0
votes
1answer
209 views

Edit theme wp_head

My wordpress render in the head tag lots of unneeded script or css files, I tried to fix this by editing my head.php page but the theme I was using (zerif) use wp_head function to include all the ...
0
votes
1answer
708 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
47 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
116 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
42 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
57 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
210 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
142 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
271 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
42 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
343 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
43 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
151 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
111 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. ...
0
votes
0answers
139 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
247 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
294 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
85 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
84 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
96 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
127 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
123 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
26 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
109 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
481 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
127 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
197 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
73 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
47 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
139 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
200 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
177 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
450 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
55 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
549 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( ...