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
36 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
89 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
39 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
46 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
87 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
59 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
35 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
52 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 ...
1
vote
1answer
74 views

How to NOT call Font Awesome or font icons in WordPress

I have a theme that makes use of Font Awesome icons by default. I have replaced all of them with custom .png icons using CSS. However, on web page load, the font-awesome icons takes up a size or ...
0
votes
1answer
67 views

Translate a child theme with pure PHP and gettext

I'm trying to translate a child theme of a parent theme that has all msgstr empty. Therefore, I've created the file de_DE.mo using the "WordPress i18n tools" recommended in the docs together with ...
0
votes
0answers
36 views

Override Class in Child Theme

I'm trying to customize a theme using Child Theme but I can't find a way to override this class, anyone can help me ? I've tried if ( ! class_exists('Extra_Page_Post_Settings_Meta_Box extends') { // ...
0
votes
1answer
338 views

Divi theme including javascript

I have tested the html and the css and the js independently of wordpress and all works fine. So trying to integrate it into wordpress. I have added the html code as a code module. I have created a ...
-1
votes
1answer
170 views

Modify Blog Module layout in Child theme

I need to adjust how the featured image is displayed in their blog module. I need to change the display of the Featured Image from an IMG tag to a Background Image. So I can modify the frame (DIV) of ...
0
votes
1answer
28 views

Is it possible to slow down site with a bulky child theme?

I am creating a child theme for my theme and as I go through all the modifications that I want, I am almost overriding all the templates and adding a functions to the theme and had to dequeue some ...
0
votes
3answers
54 views

Should template files be copied to the child theme for editing?

I know that the style.css file needs to be copied to the child theme before being edited for changes. Is that also true for template.php files? If so, do I need to just copy the specific template ...
0
votes
1answer
34 views

What is the correct workflow for modifying child themes?

I am asking the following because I am fairly new to WordPress. I want to change the fontsize for post titles. This is what I do: I inspect a post title in Chrome using devtools, and find out the ...
0
votes
1answer
56 views

How to dequeue / deregister parent theme style

I'm making a child theme, and I'd like to remove the Google font style that it calls for in 'fonts-style' function nada_theme_styles() { wp_register_style( 'fonts-style', '//fonts.googleapis.com/...
0
votes
1answer
60 views

Free theme and css/bootstrap.css is not overridden in the child theme

Why is wordpress still using the bootstrap.css from the parent theme, whenI have a child theme which (successfuly for other things) inherits the parent theme? I have the bootstrap.css settled in the ...
1
vote
2answers
49 views

Passing variable from child theme to parent theme

I want to pass my google map custom colors from my child theme to my parent theme. So in my Parent Theme's functions.php I have add_filter( 'post_thumbnail_html', "map_thumbnail" ); function ...
0
votes
0answers
18 views

Theme Customization API limits

I am building a theme with a lot of theme options and I'm using the native customizer to include those customizations options. So I have registered dozens of new panels, sections, settings, controls ...
0
votes
2answers
62 views

Passing variable from child theme function to parent theme filter

I want to pass a variable from my child theme function to a filter which resides in my parent theme. Please let me know whether below code will work or not ? Is it the right way ? Code in Parent ...
0
votes
1answer
32 views

Hook in parent theme Menu function

Trying to modify Parent Menus function on child theme, the original function is: function original_theme_menus() { $menus = array( 'top' => __( 'Top Menu', 'theme-domain' ), ...
0
votes
2answers
28 views

Wordpress Child Theme Template auth_redirect wrapper

I'm successfully utilizing a child theme in Wordpress. I would like to create a page template that simply forces login for any visits to the pages where this template is in use. (Simply need to add &...
1
vote
3answers
40 views

How are updates to the style.css file in child theme recognized?

When I update the style.css in my active child theme, the changes are not immediately picked up. I tried doing a touch on the file, but the results have been inconsistent. It worked once, but did ...
0
votes
0answers
151 views

Override shortcode in child theme

I want to change a shortcode behavior in my child theme. The shortcode.php location is: /themes/xxxx/framework/helpers/shortcodes.php the code inside this file is: class SH_Shortcodes { ...
0
votes
1answer
79 views

remove_action not working, even after changing priority [duplicate]

So one of the functions in my theme is: public function job_manager_job_filters_distance() { //Show some HTML } And somewhere else in the document lies: add_action( '...
0
votes
1answer
137 views

Child Header.php Not Showing On Other Pages

I created a child theme of the Twenty Sixteen Wordpress theme. I've read that I can edit the header.php file and it will change on all pages. My problem is, it is only changing for the home page. How ...
0
votes
2answers
28 views

Getting back a blank Wordpress site following functions code edit

I added some function code to the functions.php file of my child theme that has now set my entire site blank. Is the only way to get it back via cPanel and changing the theme back to the parent them ...
0
votes
2answers
85 views

Removed custom post type archive page shows blog page

On a website made with a purchased template, a custom post-type had an archive page. I didn't want that archive page, so I altered the custom post-type in a child-theme like so: function ...
0
votes
1answer
29 views

Creating a child theme after numerous edits to parent theme

So a quick explanation: I started messing with Wordpress a couple of years ago, having experience with HTML, CSS and some PHP. At that time I was paid a few hundred bucks to whip together a ...
1
vote
0answers
189 views

Can't get wp_title filter working in twenty sixteen child theme

I am having difficulty overriding the title set in the admin panel for a custom template page, and outputting a custom <title> tag. The parent theme is WordPress's stock Twentysixteen, which ...
0
votes
2answers
148 views

Give priority to child theme stylesheet

I've created a child theme and the main style.css works perfectly fine. However, the parent theme has another stylesheet which I want to import and create the same for child theme and use it instead. ...
0
votes
1answer
40 views

get_stylesheet_directory() in child theme breaks parent scripts

I tried hard finding another question that may answer my query but failed, so if you point any duplicates that would help. Here is my situation I have a parent theme and I am developing a child ...
0
votes
0answers
28 views

Override a __construct function in child theme

I'm trying to override a loop function in a child theme. I've tried a lot of things I found on google, but something fails, sometimes nothing change, sometimes I get a 500 error. This is the original ...
0
votes
1answer
25 views

custom post type does not working when adding in child theme function

I'm trying to register post type through child theme function.php but it does not working. However its working fine when i adding in the parent functions.php. add_action( 'init', 'testimonial' ); if ...
0
votes
0answers
67 views

Tesseract-Child: Editing CSS other than Style.css

I hope some one can help me. So here is what i want to do. I have tesseract theme by Tyler Moore. I want to change the color and style of the site name that appears in the header. No potion provided ...
0
votes
0answers
28 views

Child theme not overiding parent on some but not other elements

working locally so cannot link to site, but my issue is that I have changed the twenty twelve child theme .site-content to margin 0. I want to reduce the space between the header and the main content. ...
0
votes
0answers
41 views

Removing A Parent Theme Template

There is a template with code that I want to prevent the child theme from loading. All it does is load a little date box. What i've done is duplicate the hierarchy of that template file located in the ...
1
vote
0answers
43 views

Child Theme with multiple css files

I know this is a frequently asked question but I don't resolve it. I have make a child theme of a theme with multiple css file and I'm trying to copy them but I probably don't enqueues css files ...
0
votes
0answers
54 views

Child theme not loading parent layout

I am new to WordPress and I am just trying to help a friend customize his blog. I started doing this via the wp-admin Editor and CSS Editor until I found out this was a big no-no. So I set up a local ...
0
votes
1answer
27 views

Wordpress Child problem in admin

I created a child theme of Twenty Sixteen. It shows ok on the visitors' side, i.e. http://favrodsculpture.com. But in the admin, I can't upload images, can't log out etc... If I write a post, it does ...
0
votes
1answer
14 views

What happens to my older posts if I switch to a child theme?

I have a theme that has one custom post type. I want to mess with its templates and styles.css file. What happens to my older custom posts in case I switch to using the child theme. Do they vanish?
0
votes
0answers
27 views

Creating a WordPress website using WP-CLI

I really struggling to work this one out, its about WordPress / WP-CLI & BASH. Heres my script: if [ ! -f ".env" ]; then touch .env echo -n "Enter the DBNAME and press [ENTER]: " read ...
-4
votes
2answers
78 views

Why does twentysixteen take a free hand in dealing with longstanding usability principles?

In postings from 1996, Jakob Nielsen said that the research suggested that presenting visited and unvisited links in two separate colors is profoundly better than going with one-color-fits-all. He ...
-1
votes
2answers
47 views

What to do when child theme is out of date with parent theme

I inherited a site with Genesis as the parent theme and a Genesis child theme. The parent theme has smoothly been upgraded over the years. The child theme, however, was based on an older version of ...
1
vote
1answer
42 views

Override the function twentytwelve_scripts_styles in a child theme

I want to overide the function which enqueues scripts and styles in the theme Twenty Twelve using its child functions.php. I followed this guide but can't get it to work. Can someone suggest a ...
0
votes
2answers
25 views

How can I add some blocks to template without changing template file?

I'm working with the paid child Wordpress theme which I can not change because after it's update all my changes would be lost. I need to change post template (for castom post type, in my case it's ...
1
vote
1answer
70 views

Child theme functions.php not executing

I have the following in a child theme's functions.php file: <?php function theme_child_add_scripts() { wp_register_script( 'script', get_stylesheet_directory_uri() . '/js/...
5
votes
1answer
175 views

How to override a function when isn't at functions.php

I am trying to override a function for a theme in the child-theme but I can't get it to work. At functions.php on the theme I can see this require_once line: require_once("inc/alterna-functions.php");...