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

Why Wordpress gets old templates code instead of the last updated ones

I recently finished building my WP theme (child theme of twentyfifteen). My friend started updating content and accidentally added content to a page which don't have a function that gets and displays ...
0
votes
0answers
34 views

Why, when it comes to custom background and image, does 'The first value registered' win?

I'm messing about with overriding parent themes by child themes. The parent theme registers custom backgrounds by hooking add_theme_support('custom-background',$args) to after_setup_theme. Now, if I ...
0
votes
1answer
47 views

child index.php does not overwrite parent index.php in twenty fourteen theme

I am using the twenty fourteen theme to create a child theme and want to make changes to the index.php, but when I copy the index.php file to the child theme's directory and edit it, it doesn't change ...
0
votes
0answers
60 views

Make jQuery library load before plugin files in child theme

I'm setting up a site with child theme. I have installed several plugins. But few plugin files (fancybox, jQuery UI files) are loading before the jQuery library. So I am getting this error: undefined ...
0
votes
0answers
24 views

What is the most effective way to share assets / templates between themes?

I have a multisite network, which uses a few different themes. These themes share a lot of the same layout and structure, but they differ mainly by organization / content / templates. In other ...
0
votes
3answers
241 views

Dequeue script to prevent javascript event conflict on wordpress child theme

I've built a child theme of Divi Theme to use with Buddypress. So far so good, except for a script conflict on commenting buttons. The theme load a javascript (js/custom.js at 2642:2662) with the ...
1
vote
2answers
41 views

Overwriting templates in child theme and performance

Is it bad for performance to overwrite custom templates in the child theme? For example: I have a template called single-music.php in my parent theme. I have put single-music.php in the child theme ...
0
votes
1answer
88 views

How to refresh the Gallery images?

I am using The Ken theme for one of my client, and they want to keep refreshing the Gallery images every time the page load. I could see mk_gallery.php files, as I am not hard code PHP developer so ...
0
votes
1answer
118 views

Menu on responsive twentytwelve theme not working, strange url error

i use twenty twelve custom theme (palumariosrl.it) but i have a problem. If i try to use on responsive mode the menu not function (can i see only hover menu page and if i click on menu buttom i have a ...
0
votes
1answer
188 views

Changing a setting in the wp-admin/customize.php reverts CSS styles to parent theme [closed]

I have a child theme built ontop of the Cherry Framework theme. Whenever an admin user goes to wp-admin/customize.php and changes the slider, the CSS gets completely destroyed and needs to be backed ...
0
votes
1answer
465 views

How to create a child theme with multiple css files.

Noob at wordpress development. Trying to create a child theme for a client. But the problem is that there are many css files and not one as per many tut's available, in my senario there are multiple ...
0
votes
1answer
20 views

Hiding all posts/products/pages from a site based on a custom taxonomy/domain name

I'm working on a site that's running Domain Theme Mapper (http://codecanyon.net/item/domain-and-theme-mapper) with WooCommerce to present two sites with two different child themes... that share a ...
0
votes
1answer
435 views

Enqueue more than two CSS styles in a child theme functions.php

I've just started to use WordPress and learned about the child-theme feature. So it's my first time doing this and I ran into some problems. When I try to preview the child-theme, the formatting of ...
0
votes
0answers
53 views

Load a Child Theme's style.css just before the closing </head> tag

I have this in functions.php: <?php /* Import parent style - The new standard Wordpress way - No @import in CSS! */ add_action( 'wp_enqueue_scripts', 'theme_enqueue_parent_styles' ); function ...
0
votes
1answer
211 views

Can't Install Child Theme “The parent theme is missing. Please install the ”Default“ parent theme.”

This is my first time installing a child theme and I ran into some errors Here' the style.css /* Theme Name: WD TechGoStore-child Theme URI: http://wpdance.com/ Description: Commerce Template ...
0
votes
1answer
51 views

Child theme - overriding add_image_size by a child theme [duplicate]

I am trying to get my child theme to work and to overide one line of code in the main theme functions.php but I can not getting to work since I am totally green in php. In my main theme functions.php ...
0
votes
2answers
297 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
84 views

Deregister and Dequeue Stylesheets From a Plugin and Enqueue a Child's Stylesheet/s

I'm trying to Deregister and Dequeue 3 Stylesheets from a Plugin (WP Listings) and Enqueue 3 Stylesheets within my Child Theme's directory. I have tried using the following code, but all 3 of the ...
0
votes
0answers
91 views

Use secondary menu of parent theme in child theme

I cannot solve this problem and this case doesn't work for me either. All cases that I found on the internet deal with the new secondary menu that should be registered and used in a child theme. In ...
2
votes
1answer
222 views

Implementing DNS Prefetching with WordPress

I'm not sure whether my question sounds promising or not but what I'm going to ask is very much relevant. So please read the full question before down voting or flag. I'm trying to implement DNS ...
1
vote
1answer
78 views

Overwriting Parent Theme's Image Sizes

I'm using Raw by UDTHEMES as a parent theme for a site I am working on. In the parent theme, there is the following image size: add_image_size( 'udt-full-width-image', 870, 490, true ); And I am ...
0
votes
1answer
175 views

How to prevent funny characters on Home Page

This is a challenge for the sharpest and most experienced WordPress specialists I am building a site in the WP Twenty Fifteen theme. I created a bare-bones minimum home page at http://bit.ly/1zlmpKS ...
0
votes
0answers
12 views

Wrap template files of the parent theme

Is there a function or trick to put a wrapper to all template files. For example comments.php where the parent theme template looks like this: <div ...
4
votes
3answers
2k views

How to customize the_archive_title()?

In my child theme's archive.php, I have the following code for displaying the title of my archive pages: <?php the_archive_title( '<h1 class="page-title">', '</h1>' ); ...
0
votes
0answers
213 views

Child theme - Overriding 'require_once' in functions.php

I am attempting to modify a wordpress theme with a child theme. My parent theme has the following function in its functions.php: require_once(get_template_directory() . "/includes/theme-styles.php"); ...
0
votes
0answers
14 views

Why would one WP installation have an issue with a space in a shortcode variable?

I found a workaround, so the client site is fixed, but I don't like the fact that I don't have a cause, so I'm hoping one of you might have experienced this and know the cause. The client suspected ...
0
votes
3answers
230 views

WordPress + Child Theme = Am I missing something?

I have an issue that has me scratching my head and if I scratch anymore I'm gonna go bald. I have looked all over for a solution but have not found anything so I thought I'd stop by and see if maybe ...
1
vote
2answers
83 views

Why does the Full-width Template in Twenty Twelve pack so many classes into the body class attribute?

I created a page and selected the "Full-width Page Template, No Sidebar" option in the Twenty-Twelve Theme. The viewed page has the following body tag: <body class="page page-id-2 page-template ...
0
votes
1answer
79 views

Remove h1 from 2015 theme

I'm a Wordpress newbie! I have two h1 when I list my site categories using a URL of the following format: http://www.example.com/category/YYY I get a HTML page with a header of Category: ...
0
votes
2answers
604 views

How to install bootstrap in child theme

Something is going wrong when I try to use the bootstrap nav with a child theme and I can't figure it out for the life of me. The parent theme is called Revera. This is a bootstrap theme. It ...
0
votes
0answers
58 views

Is it possible to change parameters of Parent theme function in the Child theme?

I have a Parent theme with the following function: function getTourOffers($tourId) { global $aitThemeOptions; $params = array( 'post_type' => ...
0
votes
0answers
13 views

How to include only modifications in child theme?

Is there a way to only include single line / minor changes to a child theme without having to maintain the whole template file? For example, I have a third-party theme which has a single character ...
0
votes
0answers
27 views

Copy the other files or folder into child theme

It is possible to include or copy other files/folder in child theme from parent theme? Like, css folder and js folder? Because I made some changes to those folder. Thank you
0
votes
0answers
22 views

Create a child theme of an already heavy customised theme

I have seen tons of tutorials regarding the creation of child theme out there but all of them covers only stlye.css and functions.php. What if the website is made by heavy customization in theme and ...
9
votes
2answers
2k views

How to move the sidebar in TwentyFifteen to the right?

Is it possible to move the sidebar in the TwentyFifteen theme to the right using a child theme and CSS only, or does it require changes to the theme itself? The main issue I'm running into is that I ...
1
vote
1answer
185 views

Child theme on style.min.css

I am trying to create a child theme, and have come up with this. <?php // Exit if accessed directly if ( !defined('ABSPATH')) exit; // BEGIN ENQUEUE PARENT ACTION if ...
1
vote
0answers
173 views

Overwrite Parent Theme add_image_size in Child Theme

I'm using a child theme of a parent theme. Now on my parent theme, theveloper adds some custom image sizes like this - if ( function_exists( 'add_image_size' ) ) { add_image_size( ...
0
votes
1answer
113 views

How do I make wp_localize_script variables available for child theme?

I am trying to create a child theme and want to deregister the original javascript and enqueue my own. Its the original javascript of the theme but a bit different :) The problem that I have is that ...
-1
votes
1answer
43 views

What is __(arguments) in my functions.php

I have been handed the work of previous developers and so I am analysing the functions.php in my Circles child theme. Basically there is this code, which I know what the function does except for the ...
0
votes
0answers
65 views

What is best practice for setting up languages with child themes?

There are two main sources of relevant info in the Codex: http://codex.wordpress.org/Child_Themes & http://codex.wordpress.org/Function_Reference/load_child_theme_textdomain A parent theme will ...
1
vote
1answer
26 views

making available just some parts of theme option

I'm just starting to understand and learn about how Wordpress works. Now i'm trying to build a simple website (6 pages, gallery, slideshow) by using a downloaded from wordpress.org. The theme that I'm ...
0
votes
1answer
108 views

Why won't my Custom CSS Load

I'm in the process of adding a jQuery plugin to a site I'm working on. Needless to say it requires loading a custom script; also a custom stylesheet. Starting with the stylesheet I've been ...
1
vote
2answers
139 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 ...
0
votes
1answer
95 views

is_page_template returning false

I'm using woothemes Canvas with a child theme. Additionally, I am using the WP Listings plugin. I am creating a custom listings page template (overriding the plugin template) and I'm having issues ...
0
votes
1answer
126 views

custom template - override plugin template in child theme - issue with scripts

I'm using a custom template for the single-listing.php from WP Listings. I've used my own theme (Canvas by woothemes) single post template, and included the wp-listings code. ...
6
votes
2answers
737 views

remove_action on after_setup_theme not working from child theme

I am trying to remove a theme action for an elegant-themes theme using a child theme.. This works when I remove action after add_action code anywhere in the parent theme functions.php. However, it ...
0
votes
0answers
58 views

How to concatenate parent theme CSS-files from within a child theme?

In the parent theme I use there's a bunch of CSS-files (all enqueued properly) that I would like to concatenate into one CSS-file, and also adding my newly written CSS from the child theme. I would ...
0
votes
1answer
52 views

Preventing PHP Execution in Parent Theme

I have set up a child theme to make custom changes to my site without having them erased every time I update. One change is to remove a wrapper that displays the title of the page with a lot of white ...
0
votes
0answers
45 views

Child theme not overriding 'includes' folder on server - on localhost it does

I have includes/setup.php on my parent theme, which I successfully override in child theme with includes/setup.php file on localhost development environment. When I move the files to live server, the ...
0
votes
0answers
45 views

Override custom function in parent theme

I am creating a child theme.In the parent theme function.php there are certain files which have been included using include_once. On those files there are certain user defined under a class which I ...