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

Removing parent theme CSS without editing parent theme

I am currently developing a child theme that builds on twentyfifteen as a parent theme. However a potential issue has cropped up that is causing a problem. I want to strip the CSS and JS assets from ...
0
votes
0answers
11 views

Translating a specific part (form) of NUVO theme (possibly a plugin)

Friend of mine asked me to help with his website, he already bought nuvo theme. there is a form for placing reservations witch is in english (I think its a plugin or something). I found the strings ...
0
votes
1answer
17 views

How to correctly enqueue the parent and child theme stylesheets in the creation of a child theme?

I have to create a child theme to implement some changes to a WordPress theme and avoid that these changes are lost when the theme will be update. So I have some doubt about how do it. I am ...
-1
votes
0answers
15 views

How to avoid to lose my theme customization when the theme will be update? [duplicate]

I have the following problem. I have to modify a JQuery function into a file named custom.js into the theme that I am using for my website. I have no problem to implement my customization to the ...
0
votes
1answer
32 views

How to Create a Child Theme for a Site that Already has a lot of Customization?

I just took over a bunch of old WordPress sites that have no child themes. The sites are heavily customized and not just in the styles.css file. Header.php, functions.php are all suspected to be ...
1
vote
1answer
73 views

Enqueue stylesheets if parent theme has more than one .css file

I just learnt about creating child themes from the Codex , it says to add add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' ); function theme_enqueue_styles() { wp_enqueue_style( ...
1
vote
1answer
115 views

How can you change default color scheme in a Twenty Fifteen child theme?

Right now I am editing a Twenty Fifteen Child theme (Five Beers to be exact) and I'm wondering if there is a way I can add my own color scheme to the customizer and make it the default color scheme. ...
1
vote
1answer
19 views

Add pre-existing meta box to new custom post type

I have a parent theme that creates a number of custom meta boxes that are added to the "post" and "pages" post types as well as a number of post types also created by the theme. In my child theme, I ...
0
votes
0answers
20 views

Underscores Starter Theme for building a Parent Theme

I'm starting a new project to create a Parent Theme which supports AngularJS (Web App theme), I was looking for a starter theme to begin with. but I got so confused about which one would be the best ...
0
votes
2answers
27 views

How to store / access files in child theme folder

We are moving a HTML/PHP site to WordPress and want to use as much of the current code as possible. We are using the Avada theme, and have created an Avada child theme folder with the 2 required files ...
1
vote
2answers
23 views

Activate Child Theme with Codex

I know there is an option to have the following code in the wp-config.php file: define('WP_DEFAULT_THEME', 'x-child-integrity-light'); define( 'TEMPLATEPATH', 'wp-content/themes/x'); I currently ...
0
votes
0answers
38 views

Meta box from child theme

I've done some searching and can't find exactly what I'm looking for. I've found this, removing meta boxes but I need to add. I did try changing that to add meta box. I'm wondering if it is possible ...
1
vote
1answer
55 views

Change slug of registered custom post type in child theme

I successfully renamed a custom post type registered by my parent theme in my child theme using this method. The problem is, my permalinks haven't changed. So when I change portfolio to homepage and ...
0
votes
1answer
30 views

How to override this theme function in child theme

I'm working in a child theme and I need to override a function in order to remove some unwanted items on a top menu. So I have research a bit and found a lot of docs, really, like this, this and this ...
0
votes
1answer
54 views

Does any theme support child theme?

I'm trying to add some new functionalities to a theme and I'm using Child Theme as should be. So the theme is called u-design and I created a folder called u-design-child. Inside the folder I've ...
0
votes
1answer
37 views

Override get_template_directory() in child theme?

Is it possible to replace a get_template_directory() in my child's functions.php file? I want to make changes to the file: /** * Load Custom Post types file. */ require get_template_directory() . ...
-1
votes
0answers
18 views

Pagination redirects to home page when logged out works perfect when logged in

I am trying to getting going with my customization of my personal wordpress blog, but i hit this problem. I have merged custom post types and list them on my home page with paging option. $paged = ...
0
votes
1answer
29 views

Homepage showing a simple listing of title, featured image, then posted on

Here's a link to my blog which uses the Bushwick theme: http://veegan.co.uk/ It's current format is to have the most recent post at the top, with a larger title, then the entire post, then the post ...
4
votes
2answers
84 views

get_stylesheet_directory() vs get_template_directory() for child theme

Let's say I've the following file in my parent theme folder: 'theme-folder/inc/custom.php' Then I created a child theme. How can I check if that file exists in the child theme, then fetch it, ...
0
votes
0answers
28 views

Child Theme functions.php has no effect

I'm trying to make a child theme of Woothemes Appply theme. The Child functions.php file is having no affect though. I started by adding in the code to enqueue a style sheet, which didn't work. Then ...
0
votes
1answer
16 views

Do not show one specific widget on one specific page

Using a child theme of genesis and am unsure of how to remove a contact us widget in sidebar from the contact us page. Is there an easy way to do so? It's part of the theme which has it on the side ...
0
votes
2answers
29 views

Link featured image to post

I have a Wordpress child-themed site at http://mrme.me/utahcountyhiking, and I'm trying to get it so that when you click on the featured image it goes to the associated post. Right now it goes to the ...
1
vote
4answers
42 views

Get Parent Theme Author Name

I want to to get the Author name of the Parent theme. I can get the theme name using wp_get_theme() to get the theme object of the current (child) theme. From this I can get the parent theme name. ...
0
votes
1answer
30 views

How to allow users to switch to the child theme from front end without plugin?

I have two themes. mytheme mytheme-child By default my site loads with mytheme And I have a link by the header: <a href=" [here I have to give a code line that switches the default theme to ...
0
votes
2answers
28 views

Create a child theme from multiple themes

Is possible to create a child theme using various parents themes as template, instead of only a single parent? Example: The child theme will be called 'Light', and his parents will be the theme ...
0
votes
1answer
55 views

How to properly dequeue scripts and styles in child theme?

I made a parent theme and a child theme in one of my project. I enqueued CSS and JavaScripts in my parent theme like below: function project_necessary_scripts() { //Stylesheets ...
0
votes
1answer
37 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
23 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
21 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
37 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
52 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
18 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
28 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
76 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
47 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
66 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
148 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
113 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
63 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
37 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
70 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
203 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
30 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
39 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
40 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
43 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
109 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
59 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
24 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
34 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 ...