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
0answers
6 views

How to include a plugin's (MailPoet) javascripts using child theme's functions.php

I have to include some javasripts files in all pages of my website. They are required by MailPoet to handle newsletter subscriptions. Now, I may add them directly into the head section, but I'd like ...
1
vote
1answer
65 views

wp_enqueue JavaScript in child-theme (ReferenceError) using Search & Go

This is my first post here, so I hope I pasted the code well and you'll stand by interpreting the problem. I have deregistered and dequeued two scripts in my childtheme. When removing and adding ...
0
votes
1answer
28 views

add_action is never fired in child theme function.php

I'm setting up a child theme in WordPress and I can't make add_action to be fired within functions.php. Functions.php is called and I can run code from within. Any idea on what I'm doing wrong? $...
2
votes
2answers
162 views

Can a child theme based on Starker theme be released as free to use theme for public use?

I created a child theme named "Naksh" based on the "Starker" theme. Now I want to showcase it on WordPress. So, can I release it under GPL? Also is there any money I need to pay to Starker's creator ...
1
vote
1answer
590 views

Customizing default Mediaelement player

Good morning/afternoon everyone. Been playing around with the default wordpress mediaelement player and definitely loving it. I managed to customize the layout a little by overriding some css values ...
0
votes
0answers
45 views

Custom Function on Child Theme

I am trying to overwrite a function on Listable theme but it is not working complete. Here is the theme function function listable_wrap_the_listings( $html ) { $output = ''; $show_map = ...
0
votes
1answer
39 views

Where to find the html for Wordpress site?

Where can I find the HTML for a Wordpress site? I'm using the "X" child theme. I found a tutorial explaining how to achieve an effect that I want and it says that "All I need is an HTML markup and to ...
0
votes
2answers
15 views

Override post-formats in child theme

I'm using a child theme that only has video post format, but parent theme defines all post formats: add_theme_support( 'post-formats', array( 'gallery', 'link', 'image', 'quote', 'video', 'audio', '...
0
votes
1answer
25 views

Child theme functions.php file change database entries

I'm sure my title is not the correct terminology. I will do my best to explain what I'm trying to accomplish. Years ago I spent countless hours customizing a theme. I was finally forced to update ...
-2
votes
1answer
29 views

Modifying child theme options actually modifies parent theme

I'm using the evolve theme for my Wordpress site. I created a child theme by following the standard instructions (files below). I activated the child theme, and I edited the button shortcodes. The ...
-1
votes
2answers
550 views

How to override a theme template file with a child theme template file (of the same name)

In my main theme functions.php I have: require_once (THEME_PATH . "/woocommerce/tw_woocommerce.php"); So I created a woocommerce folder in my child theme folder and copied the tw_woocommerce.php ...
-2
votes
1answer
36 views

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 ...
1
vote
2answers
83 views

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

How to package a child theme for distribution [on hold]

I would be grateful if someone can tell me how to package a child theme for distribution. I can not seem to find anything. Thank you.
0
votes
1answer
24 views

child parent styles enqueue order

I have a wordpress theme which I hacked to my specifications. I know I'm not supposed to do that but it was long ago so now I'm trying to implement a child theme and I've put those revisions into the ...
0
votes
1answer
41 views

How to remove admin footer text from inside child theme?

I am using this set of functions in child theme to remove unneeded footer info: add_filter( 'admin_footer_text', '__return_empty_string', 11 ); add_filter( 'update_footer', '__return_empty_string', ...
0
votes
3answers
62 views

What the mean about 'child theme'?

I have read on codewordpress about this issue. In the article "A WordPress child theme is a theme that inherits the functionality of another theme". And then on stylesheet use import style from parent ...
-1
votes
1answer
36 views

Why functions metaboxes is causing White Screen in Admin [closed]

I am having an issue after migrating a project to other server. When I go to /wp-admin I am getting a 'White Screen of Death'. If I access to /wp-login.php instead I get the login form but with an ...
1
vote
3answers
3k views

Child themes CSS priority problems without using !important

I changed my WordPress site to use child themes, but the parent theme style has priority over any change I make on the child theme CSS. I can work around it using !important, however this is a patchy ...
0
votes
1answer
36 views

Setting up the child theme so as to enable right-to-left WordPress?

I want to make a child theme for twentyfifteen theme in WordPress to show in right-to-left direction. I read the documentation on that in Codex. But to be honest, the documentation was good for a ...
0
votes
1answer
926 views

Add content after get_header

I'd like to add content directly after the div#main (end of header.php) and before /div#main (beginning of footer.php). I'm using an own child-template (of twentythirteen), that contains only style....
0
votes
1answer
39 views

wp_enqueue wont work on some files?

So if i use the following in functions.php in the root off my child folder it works as supposed: add_action( 'wp_enqueue_scripts', 'register_my_scripts'); add_action( 'wp_enqueue_scripts', '...
0
votes
1answer
506 views

Use admin options from parent theme in child theme

I am creating a child theme for the first time. I have created style.css (and imported parent theme's style.css in it) and also some new files and additional functions in functions.php. Now, I have ...
0
votes
1answer
29 views

Child Theme header1.php file not overwriting parent theme's header1.php file

I am trying to add a custom header navigation to a WordPress site using a child theme (I'm using the Alphabet theme). I determined that I am using the header1.php file according to the styling inside ...
2
votes
1answer
36 views

How do I change number of columns in a proper way in twentyfourteen child theme?

I'm trying to deactive and reactive a javascript in my childtheme - from the twentyfourteen theme (so updates won't effect things). What I really want to do is to change column width from 4 to 3 in ...
1
vote
1answer
758 views

Why does my functions.php cause white-screen and media-library issues?

Overview: I was authoring a child-theme, and realized that functions.php was causing problems with the media-library and caused a "white-screen" to appear after editing a post. I fixed the issue by ...
2
votes
1answer
67 views

Understanding child theme functions.php

I have successfully created a child theme for the Emmet Lite template, using the information provided on here and here The CSS file of the child theme looks like this: /* Theme name: Emmet Child ...
0
votes
1answer
24 views

How to store a number (coming from cookie) into query vars for later usage in other filters?

I have a small HTML5 game playable (as "canvas") at different social networks, which sets an HTTP cookie. When a player comes to my Wordpress site (acting as help and support website for the game), I ...
0
votes
1answer
16 views

Updating WordPress Theme Files

How do you update a site's theme files which has a child theme active? And can you do it entirely from the front end?
1
vote
1answer
34 views

Automatically include all php files in a child theme directory

I'm currently using a custom child theme across multiple sites, and would like to modularise particular custom features (e.g. ecommerce) by separating them into individual php files, and including the ...
3
votes
2answers
9k views

How to set thumbnail image for a (child) theme

I've created a basic child image for twentytwelve, and it works as expected. The only issue is that it does not have a thumbnail image in the themes page: How do I set a thumbnail image for my ...
1
vote
1answer
23 views

Echo tags used to describe the theme

I've got a plugin I am working on to return an instance of the WP_Theme object properties. The plugin essentially allows for a simple child-theme creation. /* Theme Name: <?php echo $...
1
vote
1answer
20 views

How do add a the style-mobile css from the main theme to the child theme?

I've only found one post on this and the OP asked for clarification, but didn't get any: How to enqueue both style.css and style-mobile.css in child theme I'm using a pretty standard theme and have ...
0
votes
2answers
41 views

Renaming a theme so it aids SEO and the theme used is hidden

We are using the Divi theme for our Wordpress site, we have also activated a Child Theme that we have named our SEO keyword. However, when you look in the "View Source" and Theme Sniffer Chrome ...
0
votes
2answers
464 views

Where should I copy a PHP file from wp-includes to, in order to override it in my child theme?

I've seen plenty of questions about changing stuff inside wp-includes and plenty of answers saying don't, under any circumstances. However, I need to change something that's currently in there! I'm ...
-2
votes
1answer
36 views

My child theme can't work Error: “The parent theme is missing. Please install your parent theme”

I am using the Pricerr theme. In my parent theme I have a CSS folder with a few css files in it, a rtl.css and a style.css. What should be the code to put in the functions folder so that I can pull ...
0
votes
1answer
30 views

Widget text color change

hello i have this site and in the footer section there is the recent posts widget with the grey colored text. I wish to change it to white, i tried adding some custom css code in the theme child with ...
1
vote
4answers
609 views

Cannot save widgets in custom sidebars

I'm working on a child theme of the Toolset Bootstrap Theme. I need to create a custom sidebar, so I registered the new sidebar in my child theme's function.php file: function ...
1
vote
1answer
21 views

Wordpress Child Theme Calling Images

I am using a child theme but it does not display any images. I am reading a book which suggests the following: "There is a difference in calling images from parent themes and child themes: for ...
0
votes
1answer
31 views

function of parent not working in childtheme

I have a plugin used on a parent theme which uses shortcode. The plugin (shortcode) works on the parent theme but when I switch to child theme it no longer works. I've only added the child theme code ...
1
vote
3answers
34 views

What happens to child theme if I change to new version of parent theme?

What happens to child theme if I change to new version of parent theme? Tesseract theme came out with new version. But what happens to all changes saved in original Tesseract child theme? Will changes ...
0
votes
1answer
53 views

Problem with loading images from child theme CSS file with relevant path

I am getting an issue with loading relevant images within CSS file from a child theme directory. I placed - Sites: example.com OR sub-domain.example.com body{ background-image: url(/wp-content/...
5
votes
0answers
136 views

How to override a function when isn't at functions.php

I am trying to override a function for a theme in the child-theme but I can't get it to work. At functions.php on the theme I can see this require_once line: require_once("inc/alterna-functions.php");...
3
votes
1answer
93 views

WordPress master + child themes + Git workflow

I've been trying to work out the best solution to develop several WordPress sites using the following, but can't seem to decide what the best workflow would be. I got a master site - WordPress A. I ...
-4
votes
1answer
66 views

Twenty sixteen - full height

I want the twenty sixteen theme to "fill up" the height even if the page is empty. So.. If the content does not fill it up, it will be minimum full height.
1
vote
0answers
19 views

Getting 503 on various files

I'm having issues with BeTheme, to say the least. I can't figure out why loading a page, either on the front end or back end, always gives me TONS of 503 errors for the various javascript, css, or ...
0
votes
0answers
29 views

wp_enqueue_scripts doesn't work for template pages

In my child theme's functions.php I wrote : function add_js() { echo "path is : ".get_stylesheet_directory_uri().'/js/script.js'; wp_enqueue_script( 'script', get_stylesheet_directory_uri().'/...
0
votes
0answers
21 views

Changing admin options via child theme

I'm trying to add theme options via a child theme. The parent theme uses a function to set the array of options, then calls that function, all on the parent options.php page. I've tried copying the ...
1
vote
1answer
28 views

Scratch theme needs to be a child theme, but for which parent? [closed]

I have inherited a messy Wordpress site at work. The site was created from scratch with no obvious parent theme - it's not based on anything. I am trying to fix it without having to start from fresh, ...
1
vote
1answer
79 views

How to disable admin notice in child theme? [closed]

Similar to How to remove plugin install notice from non-admin users in Wordpress?, Disable update notification for individual plugins. I have purchased a theme, which displays a notice in admin panel ...