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

-2
votes
0answers
11 views

Can anyone help me with replace genesis post excerpt with yoast meta description and if there is no meta description show the excerpt?

Hellow, I did replace the genesis post excerpt with the yoast meta description in my child theme, but the problem is, I want to show the post excerpt when there is no meta description again. the ...
0
votes
1answer
982 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
21 views

Child style loads before all parent styles

I'm trying to move to child themes, but seem to have a problem with the order that stylesheets are loaded. I have a parent theme, which is using wp_enqueue_style to load all stylesheets, this ...
-1
votes
0answers
14 views

TinyMCE Error - Text displaying in a single column

Today, I encountered an odd error with TinyMCE after a migration of WordPress from server to server. When I went back to edit a post, the Tiny MCE editor placed each character that I typed on to one ...
0
votes
1answer
22 views

How do I integrate my Child Theme into a Custom Template?

I started working on this yesterday, and while I was able to successfully load my child theme, some of the site functionality went haywire. I suspect that I may need to add some code to my functions....
0
votes
1answer
13 views

Changing header banner dimension in child theme

I'm using Twenty Thirteen Child theme for my website running WP 4.5.3. I would like to change the header banner dimension to 900x480. The content of my twentythirteen-child/functions.php: <?php ...
0
votes
1answer
21 views

ERROR MESSAGE: Missing index.php—Child Theme

I'm trying to load a child theme on a Custom WP Theme that was created by another developer. I created a stylesheet based on the Codex instructions but I'm not sure what's going wrong. Here's my ...
0
votes
1answer
28 views

How do I move my sites to a child theme without loosing customisation?

How can I make my websites that do not use a child theme, to use one, but not loose customisation, such as MENU, WIDGETS, and many other available in the theme at the time of change. This is something ...
5
votes
1answer
174 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");...
1
vote
1answer
22 views

change the $content_width

I am creating a child theme based on 2016 I want to set new upload media images add_action( 'after_setup_theme', 'azm_add_image_size' ); function azm_add_image_size() { add_image_size( 'helen', ...
1
vote
1answer
777 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 ...
0
votes
1answer
534 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 ...
1
vote
1answer
43 views

Reuse variable in hook callback

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? $...
0
votes
0answers
19 views

How to switch the theme

English translation belongs to Google's machine translation If have not clear place, please let me know I think in a theme directory {Assume that the name is ABC} I want to deposit under ABC two ...
1
vote
2answers
38 views

Am I supposed to create a child theme for every theme I use?

I just learned about child themes recently and was wondering if creating a child theme for every theme I create is necessary. I just find it weird how other themes work okay without child themes, and ...
1
vote
1answer
84 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
0answers
30 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 ...
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
605 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
1answer
42 views

Where to find the html for Wordpress site? [closed]

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
17 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
26 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 ...
-1
votes
2answers
565 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
48 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
90 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 ...
0
votes
1answer
27 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
42 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
65 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
37 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
41 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
40 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
32 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
38 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 ...
2
votes
1answer
84 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
17 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
42 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
26 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
33 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
47 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
479 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
41 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
636 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
24 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
34 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
37 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
63 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/...