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

Update add_image_size

This has been asked before, but the answer is from three years ago and is not working for me, so I'm wondering if something fundamental has changed since then, or if I'm fundamentally misunderstanding ...
0
votes
1answer
5 views

Removing non native customizer settings from a child theme

For removing settings, controls and sections of the customizer, we can just simply use the remove methods like this: function remove_custom($wp_customize) { $wp_customize->remove_setting('id'); ...
0
votes
1answer
18 views

How do I get a parent theme modification from a child theme?

I've built a child theme, and I would like to reuse some of the settings created by the parent. I hoped this would be as easy as get_theme_mod( 'setting' ) inside the child theme, but that returns ...
0
votes
1answer
26 views

jQuery functions work in console, but not live

I am trying to traverse the DOM in a number of places, replacing some of the content. jQuery('.homepage_buttons_text a[href^="http://danrobertsgroup.com/?attachment_id=1037"]').each(function(){ ...
1
vote
2answers
24 views

How to check active theme is parent or child wordpress

I am working on a plugin in plugin. I make template folder and in template folder and there are files of plugin that shows my post type data. First Scenario When user activate my plugin the template ...
0
votes
1answer
13 views

remove parrent theme action in child

I'm create Child theme from Storefront now i want to remove these action in child theme add_action( 'woocommerce_before_shop_loop','storefront_sorting_wrapper',9 ); by this function: add_action( ...
0
votes
1answer
26 views

Protecting work on client's web host

I am taking on a freelance job making modifications to a client's already existing website/Wordpress theme. What is the best way to work on the client's current web host without putting myself at risk ...
0
votes
1answer
21 views

@font-face broken in child theme

In my site I'm using Bootstrap for the basic structure (bootstrap.min.css), and using my own stylesheet (style.css) for further enhancements or modification. I declared @font-face in my stylesheet ...
1
vote
1answer
19 views

Hiding Parent Theme

I am using the child theme and have renamed it to the new theme name. However, the parent theme is still viewable in the admin area with the original theme name. How do I hide the parent theme? ...
1
vote
1answer
41 views

Add custom function to a theme with child theme's functions.php

I am using a theme Indigo and have it working fine, in a child theme configuration. I want to add a custom function. Unlike the child style.css, I have read that you don't need to import the parent ...
0
votes
1answer
34 views

Why is this jquery / java script code not working in mobile / in devices?

I have following script in my header.php : <script type="text/javascript"> /* to show back the left side bar back when the LEFT side bar is moved next/below to the center/content */ ...
1
vote
0answers
34 views

why this media query is not working / not loading when I put it in child theme?

I am trying to create a separate style sheet for responsive behavior in a site. my folder structure: magzine/style.css magazine-child/style.css magazine-child/responsive.css Magazine is my theme ...
0
votes
1answer
23 views

wp_enqueue_style referencing parent theme

I have properly set up a child theme and am adding stylesheets and scripts in my new functions.php file. The only problem is, my newly enqueued stylesheets are being referenced using the parent theme ...
0
votes
2answers
25 views

Changes in my child theme from customizer not appearing in style.css?

I have made some changes (colours, etc...) in the appearance customize from my child theme, is actually working as is just applying to my child, but when I open the style.css from my child I don't see ...
1
vote
0answers
43 views

Pagination in relation to archive.php

A small problem here, I just don't know how to change this because I'm a self taught newbie. I made a child-theme from the simone-theme with a static front-page. To it I have the archive.php as the ...
3
votes
2answers
55 views

Override parent theme translation on child theme

I have a parent theme that uses correctly load_theme_textdomain() to load all the translated strings in many languages. Then I created a child theme that uses load_child_theme_textdomain() to achieve ...
0
votes
0answers
23 views

Child Theme Issue - activated but does not show in preview

I created a lot child-themes but with a specific theme it doesn't seem to work for some reason... I can't figure it out... style.css /* Theme Name: theme1369-child Theme URI: ...
0
votes
0answers
22 views

How to modify twentytwelve sidebar in a child theme

I'm trying to modify the sidebars of the twentytwelve theme in my child theme. So far, I've added this to the child theme's functions.php file but all pages are now blank. remove_action( ...
0
votes
1answer
18 views

Removing get_template_part in child theme

Parent Theme loads some template files in its functions.php as follows: get_template_part ('lib/login/register.php'); I want to remove this file in child theme and include my custom php templates. ...
-2
votes
1answer
40 views

Should I create a child theme for a parent custom theme? [closed]

I am going to create a mobile version of a desktop theme. Device Theme Switcher plugin will use a correct theme based on the client device. The desktop theme is a custom theme. So should I create a ...
0
votes
1answer
53 views

Child theme style.css isn't overwriting parent style.css

I am using the Optimizer theme and created a child theme to make 2 changes in the style.css. The .single_wrap adjustment works fine, but the page_head is being ignored. When I use Inspect Element on ...
0
votes
1answer
16 views

get_template_directory() - references parent theme directory

I've got this line in the functions.php of my Child theme: require ( get_template_directory() . '/somecode.php' ); However it's giving me the following error: Fatal error: require(): Failed ...
0
votes
1answer
20 views

CSS stopped working after line 150 [closed]

I'm editing css stylesheet for my childtheme and after 150 lines of code another line of code stopped applying to the web site. When i put the same line of code on the top everything is ok. Here is ...
-1
votes
2answers
28 views

Image Size wrong during upload

I am currently in the middle of developing the front page for a online store. I am trying to resize the width of the image to expand it across the full width of the page, however the image will not ...
0
votes
0answers
23 views

Change theme layout via “Appearance Customize Screen” on per user basis

I have added some options to the "customizer screen" in the appearance settings on the dashboard of my Wordpress Child theme. All works well by specifying additional headers and theme color options in ...
0
votes
1answer
30 views

Modify arguments for parent theme's `wp_register_style` via child theme

Working on a child theme for site with a good deal of separate stylesheets being registered/enqueued from the theme and plugins. I'd like to change some attributes of the <link> tags in the ...
0
votes
0answers
22 views

unzip a folder on specific location and delete the zip file

After the lots of search. I am deciding to post my question here. Basically i want to upload a zip file in my wordpress site from my admin panel. And also extract this file to specific location with ...
0
votes
0answers
30 views

Child Theme for WooCommerce's Upstart

I'm having trouble with the Child Themes concept, and I am using WooCommerce's Upstart Theme. After Reading the Wordpress Documentation on Child Themes, I attempting to implement a Child Theme for the ...
0
votes
1answer
48 views

Child Theme Fatal Error [closed]

I wanted to create a child theme on my new Wordpress site. I followed the instructions on the first part of this site: http://codex.wordpress.org/Child_Themes After doing everything AFTER "How to ...
-1
votes
1answer
93 views

How do I make my child theme's CSS update when I save it?

Current System WordPress 4.1.1 Theme: Child theme of Lovecraft Issue Summary My theme, a child theme of Lovecraft, is calling the stylesheet with the URI ...
0
votes
0answers
12 views

How to make sure Child styles load after Parent styles [duplicate]

I have setup a child theme for my site. However I'm having trouble getting some of my CSS styles to work properly because some of them load before the parent style and therefore become overruled by ...
0
votes
0answers
57 views

How to enqueue both style.css and style-mobile.css in child theme

This is pretty basic, but I'm not sure what I'm doing. I have setup a child theme and I'm able to edit my child theme style.css and make changes successfully. However I'm unable to enqueue the ...
0
votes
0answers
30 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
27 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
44 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
52 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
22 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
176 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
38 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
72 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
105 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
134 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
336 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
17 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
299 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
42 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
134 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
40 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
204 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
62 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 ...