Questions tagged [child-theme]

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.

Filter by
Sorted by
Tagged with
0
votes
0answers
14 views

How to stop customizer settings inheritance from parent to child theme?

Whenever I change customizer settings, it gets applied to current parent theme AND child theme. If I change customizer settings on child theme, and then switch back to parent theme, the customizer ...
-2
votes
0answers
11 views

How to display product by sku in custom html page template

Solved: I am trying to display a spesific product by sku on a custom html page template which I place in /wp-content/themes/child-theme and then I set the page in wordpress with templates. I tried &...
-1
votes
0answers
8 views

Creating a child theme so that I can create a page that doesn't show up in frontend Topbar (navgiation bar)

It seems as though every time I create a slider (in the form of a page) for my website's homepage, It creates a section on the topbar. From what I've read, I will need to create a child theme in ...
0
votes
1answer
12 views

Pseudo class :before don't working in a specific button

Currently, i'm building an ecommerce and a small button was running with pseudo class :before suddenly stopped working.The site run WP with Divi and Woocomerce. I wish the bellow code back to run: ....
0
votes
0answers
14 views

Child Theme Aaron Customizer

I created a child theme Aaron and wanted under advance settings-> “check this box to hide the clickable site title in the header menu” to always be default checked. How do I modify this on the child ...
0
votes
1answer
59 views

How to add javascript code into Divi child theme?

I want to add this JavaScript code into my Divi child theme. I have made a directory for the js file inside the Divi child theme folder. The name of the js file is "selectpage.js". <script type="...
0
votes
1answer
18 views

How do I bring a page template into a new theme with separate styling?

I currently have a page template that I have striped of all major styling within a theme (twentyninteen-child). I have a new child theme (event), that this page/template will sit under and am having ...
0
votes
1answer
13 views

Crazy redirect happening with no redirects set up

I have a website https://createandgo.com If you hover over 'Design' in the top menu, then click 'How To Write A Blog Post' it adds like 21 URL extensions: https://createandgo.com/blog-writing-tips/-...
1
vote
0answers
19 views

Wordpress Bootstrap Problem

I'm having a problem with my theme's compatibility with bootstrap. So the checkboxes on my website appear double (). So I enqueued the latest Bootstrap CDN (CSS and Scripts) on my child theme and ...
0
votes
0answers
13 views

How to override/call the custom Taxonomy template in Child theme

We have custom Taxonomy template in Parent Theme, we want to override that template in child theme. ex. taxonomy-ad_cats.php Where to keep the custom Taxonomy template in the child theme and how to ...
1
vote
0answers
22 views

Add other social networks to TwentyNineteen_SVG_Icons class in child theme?

I'm trying to add items to the $social_icons_map and $social_icons arrays in class-twentynineteen-svg-icons.php I know I need to do it in the functions.php file of my child theme. I think I need to ...
0
votes
0answers
10 views

How to preserve changes in templates and other files

I've downloaded a theme and then changed some css styles, and also php templates etc. Then I've realized, that when I will have to update the theme I'll probably lose all my changes. Is this kind of ...
0
votes
1answer
25 views

trying to add extra field using hooks

I am trying to add an extra field on the backend menu of Edit Subscription menu (SUMO Subscription (plugin) -> List of Subscription -> Edit Subscription) I am sending you a screenshot for where ...
0
votes
1answer
13 views

How can error pages be customized

Googling this comes up only with information about customizing 404 pages of course, I can't seem to find a way to customize this: I'm using a plugin that allows users to submit stuff in the frontend, ...
0
votes
1answer
93 views

Add custom SVG icons to Social Icon MENU in WordPress Twenty Seventeen Child Theme

I'm having trouble adding custom SVG icons to the Social Icon Menu in WordPress Twentyseventeen Child Theme.The menu works fine with all pre-packaged SVGs included with the theme, but I can't add ...
0
votes
0answers
16 views

Wordpress download of custom CSV file blank

I have a Javascript download function that provides the download of a CSV file from a custom table of a specific page that is private. The function works perfectly, if the user is logged as an Admin,...
0
votes
1answer
20 views

How to change the structure/order of sections in a Wordpress theme? [closed]

I am using a Wordpress theme called "business-one-page", here is a link to the demo of the theme: Buisness-One-Page. I am trying to change the structure of the sections. This is a one page theme so ...
0
votes
2answers
24 views

How does a Genesis child theme understand that the Genesis theme is the parent theme?

In most Genesis child themes, the following line of code exists: // Starts the engine. require_once get_template_directory() . '/lib/init.php'; I understand that this includes the init.php file from ...
1
vote
1answer
26 views

Mobile issue – website isn't properly detecting screen size [closed]

my question concerns this website (currently on my staging server): https://sunstonebookkeeping.markhannondesign.com The theme is a child theme of a parent theme I created with Underscores and ...
0
votes
1answer
21 views

How to edit button permalink inside function.php using a child theme?

I am using a WordPress theme called "business one page" and it has a slider with Learn-more button. Here is a demo of the theme Business-One-Page I am using a child theme and I want to change the ...
0
votes
1answer
21 views

Creating a child theme: How do I find the template name of the parent directory?

I am trying to create a child theme for the Fitness Hub theme. I'm following this guide (https://developer.wordpress.org/themes/advanced-topics/child-themes/), when it comes to part 2. it makes it ...
0
votes
0answers
22 views

How to override prepended JavaScript files in child themes?

I'm trying to override from my child theme some JavaScript, which is in a parent theme's .js file. The file in question is not being loaded through a PHP hook, but rather from within another .js file (...
0
votes
0answers
14 views

Dequeue Parent Theme File and Enqueue Child's

Not being able to achieve this simple thing for some reason Parent Theme Code (File: css_js_include.php) if( 'estate_property' == get_post_type() || 'estate_agent' == get_post_type() || ...
0
votes
0answers
25 views

What is an alternative to not using child theme to customize a WordPress theme?

I'm using a premium parent theme and I've been trying to create a child theme from it and found that some "templates" are not just as simple as overidding them. Read this So, that is the other best ...
1
vote
1answer
28 views

Child theme undefined variable error

I'm trying to make my own child theme from Twenty Fifteen. Everything looks and functions fine, but when I turn on debugging, I can see a PHP error: Undefined variable: parent_style on line 13 of ...
0
votes
0answers
16 views

Child theme, how to cut the functions.php file into several classes?

The functions.php file of my Child Theme is a mess... I'd like to use classes in a separate folder (like /inc) but I would like to keep a maximum of security. For now everything works as excepted, but ...
0
votes
0answers
24 views

How to locate parent theme functions and add functions to my wordpress child theme?

I am using a wordpress child theme and have added css code to the style.css and everything works well. When i want to add function to my function.php file I always get error message. I am new to using ...
0
votes
1answer
19 views

How to let mobile navigation menu close when link is clicked?

I am using a wordpress theme and i wanted to change the navigation menu to a one-page navigation menu. I already made everything work except when i am using a mobile the menu does not close when i ...
0
votes
1answer
24 views

how to add functions to my function.php using a child theme?

I am trying to add functions to my child theme function.php file but each time i try the site crashes. I dont know how to add the functions the right way. <?php add_action( '...
0
votes
1answer
19 views

Child theme blocks post from publishing [closed]

I created a child theme to another template, which introduces custom post type with loads of custom fields and specialized functions. Notes: I did not touch anything in the custom post type logic ...
0
votes
1answer
18 views

Making a child theme in order to update the parent theme

I'm really new to Wordpress development and had made a mistake by changing a parent theme for customizations instead of customizing a child theme. Not i cannot use the updates that my theme provider ...
0
votes
2answers
28 views

Modifying child theme's header

I'm a noob. I have copied the header.php from the parent theme, I have added some snippets and things work. However, I would like to be able to add those same snippets either using a plugin or via ...
0
votes
1answer
34 views

How to have different site identity logos on each page on Astra Theme [closed]

Original title - Noob here. Wondering how to make use of this Astra theme function / filter to have different site identity logos on each page The function is at line 1471 here (...
0
votes
1answer
43 views

change html and css in template files in child theme

I am trying to move my site to WP using a child theme based on twenty sixteen (this is the first time I am dealing with WP). Considering my site html and css, is it possible to incorporate html ...
0
votes
0answers
26 views

Block validation failed for `core/pullquote` after adding theme support for editor-color-palette

I added this function to my child theme's functions.php: /** * Adds support for custom editor color palette. * https://developer.wordpress.org/block-editor/developers/themes/theme-support/ */ ...
0
votes
0answers
27 views

Override parent theme deregister

I have a parent theme that deregisters a script, in my case jquery. It does it like this: function parent_enqueue_scripts() { wp_deregister_script( 'jquery' ); [...] } However, in my child ...
0
votes
1answer
19 views

How to Change Site Elements based on referring URL

I want to create WordPress website that changes branding and theme based on the referring URL. We provide white label services to funeral homes and we want to create a generic site where funeral ...
0
votes
0answers
42 views

How to use POST method using custom wordpress button?

everyone! I'm pretty new to wordpress development, and right now i'm trying develop a small ecommerce site using some wordpress plugins and some php on my part. Right now i'm in the middle of ...
0
votes
0answers
9 views

Child Theme with RTL Support - Does not load parent RTL file

I have been working on a Child Theme. And I have added this code to my functions.php <?php // Exit if accessed directly if ( !defined( 'ABSPATH' ) ) exit; // BEGIN ENQUEUE PARENT ACTION // AUTO ...
0
votes
0answers
24 views

Scripts don't enqueue after removing plugin

Using the Ultimate Member plugin. My custom scripts are loading in my child-theme as follows: function some_theme_enqueue_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri() ...
0
votes
1answer
10 views

My theme is adding an unmatched end tag and outputting it to my screen

I use a theme that uses WPBakery - I have a feeling WPBakery might be the culprit here. I made a few small changes, and now this is appearing at the very top of the page, above the menu: " /> I ...
-1
votes
1answer
14 views

Global Navigation menu in diiferrent wordpress setups

I have 2 different wordpress sites but I have deployed it like www.xyz.com and www.xyz.com/news Now I am trying to get main menu from www.xyz.com and it should work with www.xyz.com/news main purpose ...
0
votes
1answer
26 views

How do I remove a customiser option from a parent theme in a child theme?

Let's say there is a theme that you like but you want to make some changes. You make a child-theme. At least you do if you follow good advice. So now you have a child theme. You are happy with it and ...
0
votes
2answers
27 views

Where i must put hooks in overridable functions?

Where i must put hooks in overridable functions for better child themes? Inside if statement or outside? if( !function_exists( ovveridable_function() ) { function overridable_function() { ...
0
votes
3answers
57 views

Word Press Theme Customiser and Child theme Function.php

I've cast a pretty wide net to find an answer but nothing seems to quite hit the mark. Process:: I Login to my site/dashboard and I decide I need to edit a portion of my theme through the customiser, ...
1
vote
1answer
63 views

Is it better to put CSS in additional CSS or in Child theme styles.css [closed]

By better i guess i mean which works faster when rendering the page. I understand that the additional css editor stores the changes in the database. Does that make it quicker or slower than using ...
0
votes
0answers
40 views

Wordpress files break if I edit them, but adding a closing PHP tag fixes it

So, I'm kind of stumped by this one, and I'm unable to find many other folks experiencing it. I'm extending the "largo" theme for a site we're getting ready to launch, and am working within the child ...
0
votes
0answers
18 views

My wordpress site is crash due to excute child theme

I installed Lilaea child theme configuration plugin and I created a child theme and then editted the style.css in the child theme. But then I do not know why my web is crashed. I copied all lines in ...
0
votes
1answer
79 views

How to fix empty/missing theme directory?

I'm having an issue with my site, i get the following error whenever I try to access it "The theme directory "Divi-child" does not exist. ERROR: The themes directory is either empty or doesn’t exist. ...
1
vote
0answers
30 views

Template files not working with child theme [duplicate]

This is the second week in a row that I'm having trouble trying to get a child theme working with Wordpress, despite having studied the Codex entry extensively and following it word for word. I'm ...