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

Best practice when a theme already has a parent theme (so can't create child theme)

I've recently purchased a theme which is already has a parent theme as part of the installation (which means I can't create a child theme myself). I understand that it's best practice to create a ...
0
votes
0answers
29 views

“Cannot modify header information - headers already sent by” while using get_stylesheet_directory_uri()

I have a very strange problem while trying to include a custom file to my child theme. if I try to use get_stylesheet_directory_uri() along with require it crashes the website. if I try to var_dump(...
0
votes
1answer
109 views

Do I need to create a child theme for JointsWP

I have decided to try o move away from buying bloated premade themes and build my own from scratch. I am planning to use JointsWP along with Elementor Pro page builder. When I install a bough theme, ...
0
votes
1answer
170 views

Override plugin images so that they are not removed when the plugin is updated

Is it possible? It's the x in this page. the one for removing the composizioni corali filter. It is in plugins/woocommerce-products-filter/img/ with the name delete.png https://www.digitalmnemes.it/...
0
votes
1answer
305 views

AJAX numerical pagination problem in TwentyFifteen-child theme

I want to create an AJAX numeric pagination. And found code in a website. And it works perfectly at first click event, but on the second click it doesn't. If I click in pagination page 4, it works ...
0
votes
1answer
22 views

Copy files from main to child theme (after designing website)

Have a new website and want to install Google Tag Manager (GTM). The GTM code requires a (second) tag. According to this site (https://www.wpexplorer.com/google-tag-manager-wordpress/) you can copy ...
1
vote
0answers
24 views

GET parent theme throws 500 error in console, site works fine

I have a storefront site with a storefront-child theme. Everything works fine except I have an annoying 500 in the console. GET https://fubar.net/wp-content/themes/storefront/?ver=5.3 net::...
0
votes
2answers
1k views

Override Dokan Includes File in Child Theme

I'm trying to override this Dokan plugin file in a child theme: wp-content/plugins/dokan-pro/includes/modules/vendor-verification/templates/verification-new.php I can successfully override files in ...
0
votes
1answer
88 views

CSS Styling a specific page

I am familiar with styling specific pages on WordPress by adding a class .page-id-123 in front of the styled element. However, this doesn't seem to apply to "subpages" (sorry don't know what they ...
0
votes
1answer
64 views

Can't switch to a child theme using filters template, option_template and option_stylesheet

In order to dynamically switch a theme in functions file (e.g. when wanting a different theme for a different domain, but same website), you use the following: add_filter('template', '...
0
votes
0answers
37 views

Plugin function in child theme

I need to customize a message returned from a plugin function using my child theme. In the plugin: if ( ! class_exists( 'my_class' ) ) { class my_class { if ( ! is_admin() || ( defined( '...
0
votes
0answers
46 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 ...
0
votes
1answer
144 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
1answer
653 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
25 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
16 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
38 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 ...
1
vote
0answers
45 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 ...
1
vote
0answers
14 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
38 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
14 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
1k 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
1answer
457 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
108 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
40 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
152 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
145 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
92 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
483 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
19 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
32 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
388 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
176 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
22 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
25 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
517 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
1k 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
69 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
98 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
30 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
68 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
50 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
29 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
18 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
17 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
36 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
28 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
143 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
472 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
197 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 ...

1 2 3
4
5
24