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

How to style injected code in header section?

Trying to add custom code to header section <head>..</head>of the blog by adding this code to child-theme functions.php // Add scripts to wp_head() function child_theme_head_script() { ...
0
votes
0answers
6 views

How to replace a widget by editing it in the child theme?

I am fairly new to wordpress. I heard that changing a theme widget in the theme itself is not a good practise. I want to edit a certain widget by copying it into the child theme. The widget in the ...
0
votes
1answer
25 views

How to style options page in dashboard?

working with a child-theme, adding a custom options page to dashboard in which admin can save details about the site. Using this code in the child-theme functions.php to create the options page: ...
0
votes
1answer
20 views

How to use parent theme functions in child theme functions.php file?

Parent theme required a foo.php file, and inside that file is a baz() function. I want to use that baz() function in functions.php of the child theme without recall foo.php file again. Are there any ...
0
votes
0answers
21 views

Toggle Visibility of Separate Javascript Files on Same Wordpress Page

Let me preface by saying my knowledge of JS is lacking at best and the concept of installing/loading/enqueueing a function on one area of the site and then calling that function in another area of the ...
0
votes
0answers
21 views

Where to put wp_head() when using switch_to_blog()

Where should the call to wp_head() be in my case. I'm using switch_to_blog() in order to keep one consistent header with its own widgets and menus across all multisites. If I call wp_head() in ...
0
votes
0answers
20 views

Override Woocommerce Booking template in child theme [closed]

I use Woocommerce Bookings plugin and I want to override a file of it from my child-theme folder. The original directory of the file is: ...
0
votes
0answers
12 views

Is it possible to override a parent theme's translatable strings from within a child theme using a .mo file?

I have a theme that's properly setup for internationalization. I would like to override strings from the parent theme from within my child theme via a .mo file rather than copying over the template ...
0
votes
0answers
32 views

How to use Gulp to develop Wordpress child theme [closed]

I'm starting with Gulp.js task runner. I have a WP child theme and its parent theme. What files must be passed to gulp streams to ugglify and concat? If I pass parent theme files, what happen when I ...
-3
votes
1answer
50 views

I'm new in developing responsive Wordpress Theme, so which framework to use or work from scratch? [closed]

I'm totally new in developing responsive Wordpress Theme sector. But fortunately, I've heard of Frameworks like: Underscore, child-themes, Genesis !! What speciality each Framework has? I'm much ...
-2
votes
0answers
16 views

Which is a good Front-end Web Design framework to start developing a Responsive Wordpress Theme in short time? [duplicate]

my Question is plain & simple, but I need experts opinion-- I'm new in developing Wordpress Themes, especially in Responsive Design, I've heard of child themes, genesis theme frameworks, but not ...
0
votes
0answers
14 views

Child Theme Upstream

I have a parent and child theme set-up, and I have created a "starter" child theme to kickstart development. All are hosted in Bitbucket. When I start a new project I fork the "starter" child theme. ...
2
votes
1answer
77 views

Adding PHP/HTML code inside page from custom template

I'm helping my son with his financial site with some custom programming. The first project for him is a custom spreadsheet using jQuery, flot, php, etc. I created a child theme, created a template, ...
0
votes
1answer
46 views

How Child Themes Directory works for plugins?

I am working on a Wordpress installation, that another developer used to do. I have an issue since he was working only with Child Theme Directory whereas I didn't. What I want to do, is to edit the ...
1
vote
1answer
50 views

Indirect modification of overloaded property WP_Post::$classes has no effect

I'm working on a child theme and while everything works the Walker_Nav_Menu and Walker classes are causing all the fuss. My parent theme overrides Walker_Nav_Menu as below: if ( ! class_exists( ...
0
votes
2answers
38 views

Related Posts: Changing Function For Posts Per Page

I am working on dailysuit.de, which features 8 related articles below the content in every post, defined by some tags. Now I wanted to reduce the number of "posts per page" from 8 to 4. Of course, I ...
0
votes
2answers
25 views

style.css of child theme is not overwriting parents style.css for .box

I am using latest wordpres. I have created child theme. I am trying to overwride the .box style of parent theme but it is not overriding it. If i do this in parent themes style.css it works. //This ...
0
votes
1answer
39 views

Jquery in Child Theme

I am new to Wordpress and I need help with integrating my own jquery into a child theme. I have this jquery tooltip which works but I want to include it into my wordpress child theme. Have a look ...
10
votes
1answer
167 views

How do I make my child theme re-apply the settings that were customised when its parent was active?

Scenario Pick 2015 theme. Customize various settings, such as background picture, header picture, site name and tagline. But don't touch the contents of any of the theme's files. Use Codex' Child ...
0
votes
1answer
25 views

Can't create child themes. “Stylesheet is not readable.”

I'm working on a website for my mom and I'd like to create a child theme to customize the theme I've found for it. I made a new folder in /wp-content/themes/ and created a new file in it called ...
0
votes
1answer
29 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
58 views

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

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 ...
0
votes
1answer
38 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
118 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
125 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
27 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
38 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
37 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
47 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
103 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
41 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
56 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
51 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() . ...
0
votes
1answer
33 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
108 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
29 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
21 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
32 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
48 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
45 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
79 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
47 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
32 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
27 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
50 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
60 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
21 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( ...