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

1
vote
0answers
26 views

wp_enqueue JavaScript in child-theme (ReferenceError)

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
41 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
37 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 ...
-2
votes
1answer
33 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 ...
-3
votes
0answers
36 views

Avada theme HTML being shown in Chrome Console but not displaying in Page [closed]

I have a custom shortcode which returns some HTML. I have the HTML being outputted in the correct area by the shortcode. But the page is blank. I can inspect the div and all the code being outputted ...
-3
votes
0answers
11 views

How to package a child theme for distribution

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
21 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', ...
-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 ...
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
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 ...
-3
votes
0answers
16 views

Create Post Type with CPT UI and show fields from advancedcustomfields-plugin in post template [closed]

I am using the CPT UI plugin and the advancedcustomfields plugin. First, I generated the Post Type "Matratze" with the CPT UI plugin. Here is the export code out of this plugin: {"matratze":{"name"...
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 ...
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 ...
2
votes
1answer
64 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
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 ...
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 $...
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 ...
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 ...
-2
votes
1answer
35 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
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
52 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/...
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
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
1answer
91 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
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 ...
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
28 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
78 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 ...
0
votes
1answer
29 views

What template is used for viewing Media Library Files?

I would like to create a special page template in my theme for viewing the media library files. Currently, when I click a Media Library image file I get a page template from the parent theme. Does ...
0
votes
2answers
85 views

Overriding Plugin Function in Child Theme

I have a plugin and a custom post type class like this. I want to override one its function in my child theme. class Inspiry_Property_Post_Type { /** * Register Property Post Type * @since 1.0.0 ...
0
votes
1answer
40 views

Unable to change the priority with 'remove_action' and 'add_action' in child theme

I am using an Woo theme. In the parent theme, there is this function: function woothemes_wp_head() { do_action( 'woothemes_wp_head_before' ); if ( function_exists( 'woo_output_alt_stylesheet' ) ) ...
0
votes
1answer
34 views

How to create and populate with few links a menu in child theme functions.php?

The official Twenty Thirteen theme defines just a single menu in the /wp-content/themes/twentythirteen/header.php file: <?php wp_nav_menu( array( 'theme_location' => 'primary', '...
0
votes
1answer
66 views

LESS not working in WordPress [closed]

How to run the CSS preprocessor (LESS) in WordPress? I'm trying to apply LESS in my child theme. I create variable.less and place it in the child theme folder css/less/variable.less and I call this ....
0
votes
2answers
35 views

Childs PHP files not overwriting Parent's PHP files

I have a php file located at: .../wp-content/themes/kallyas-child/pagebuilder/elements/TH_TeamBox/TH_TeamBox.php I'm trying to use the above file to overwrite the parent's TH_TeamBox.php file which ...
-4
votes
1answer
42 views

WordPress Custom Fonts Problem! [closed]

I added custom fonts on my website! Its based on Genesis Framework.More then 15 days web fonts show every where,suddenly fonts missing but i checkout my fonts link and fonts deceleration on CSS its ...
1
vote
1answer
81 views

How to pass a numeric id to a page template?

I am using a Wordpress installation with Wordpress Social Login as a "canvas" for an HTML5-based board game. In the file /wp-content/themes/twentythirteen-child/front-page.php I get the numeric ID of ...
1
vote
1answer
58 views

How to add #navbar to all page links?

I have several Wordpress websites with large images at their tops, using 2013 child theme. How to add #navbar anchor to all page links, so that the browser scrolls down a bit, when a user clicks a ...
0
votes
1answer
34 views

Set a link in child theme style.css to jump to #main [closed]

I have created a 2013 child theme by creating these 2 files - /wp-content/themes/twentythirteen-child/style.css: @import url("../twentythirteen/style.css"); .site-header .home-link { min-height:...
0
votes
1answer
44 views

How to overwrite template.php file

I'm using a child theme for my website. I tried to enqueue template.php file wich exists in includes folder but making any change in the template.php file of the child folder didn't affect pages. ...
0
votes
0answers
15 views

Add an option of the theme-options with a child theme

I want to add an option to the theme options of a theme. How can I do this? Replicate the theme_options.php within my child theme directory and include this file? This does not seem to work. How does ...