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
13 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
12 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
19 views

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

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
1answer
13 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
22 views

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

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
19 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
15 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
19 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
12 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
23 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
15 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
21 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
17 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
23 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
27 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
29 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
40 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
18 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
16 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
40 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
5 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
23 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
13 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
56 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
61 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
39 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
25 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
29 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 ...
0
votes
0answers
27 views

Child theme enqueueing style.min.css not style.css

Theme Name : StrapPress with bootstrap 4.2 I created child theme using Child Theme Configurator. It created functions.php and style.css, but when I applied new styles in the style.css it did not ...
0
votes
0answers
29 views

Add the shortcodes from the enfold theme to the other theme

A WordPress website uses the enfold theme and its content is created with the avia page builder. We have created a new template when it displays the text with the theme of the previous code shortcodes....
1
vote
1answer
49 views

Edited Child Theme's “header.php” but it doesn't appear to change the file

So I logged into FTP and navigated to /wp-content/themes/MyChildTheme/ and edited the header.php file. I saved the file and uploaded it and I can confirm the file has changed because if I check via ...
0
votes
2answers
29 views

Is it possible to create child themes using the Wordpress Dashboard?

I've been looking into creating a child theme in which I can make changes to my theme, but all the tutorials I can find assume that you're working with a local Wordpress installation, and explain how ...
0
votes
1answer
21 views

Replace theme function

I am a PHP developer but I am new to WordPress so there may be simple things I don't know how to do. I made a change on a theme file to change the behavior of the theme. Only changed 6 words and ...
0
votes
1answer
33 views

WordPress redirect JavaScript and CSS using function.php/child theme

Is it possible to redirect JavaScript and CSS calls using something function.php for example? I used WP Hide & Security to rename some of my plugins and it has functioned well but it clashes with ...
0
votes
0answers
24 views

Created child theme from Themegrill Flash-Pro and the child theme is blank

I have just created my first child theme using ThemeGrill's Flash Pro as the parent. I followed the directions from ThemeGrill exactly to create the theme, even downloading the code from their site to ...
0
votes
1answer
37 views

Using filter to override "get_parent_theme_file_path” in child-theme

WRT - Hwo to turn off "get_parent_theme_file_path" in child-theme? Twenty Seventeen parent theme. I'm trying to make my child theme over-ride the file /inc/template-tags.php - both my ...
0
votes
0answers
11 views

How to attach NextGen Gallery to subscriber Dashboard to allow subscriber to bulk and sort photos?

We use a theme. We do not hard code. Theme providers generally do not offer support for outside plug-ins. So we are in between rocks regarding support. Themes we have tested have all offered some ...
0
votes
2answers
32 views

Child Theme Translations with PoEdit

What I'm doing I am translating a child theme and followed the instructions on https://developer.wordpress.org/themes/advanced-topics/child-themes/#internationalization. What I did so far Step 0 ...
0
votes
1answer
49 views

My Child Theme CSS Isn't Working

I have a child theme of the twenty seventeen theme. The problem i'm having is that my child theme css isn't working. I have checked the page source and the css file for my child theme is loading but ...
0
votes
1answer
13 views

Minor changes on theme per subdomain - same contents

I would like to run a knowledge base based on wordpress, main URL will be docs.product.com but i would like to see minor changes on the theme when url is different, f.e other.product.com, other2....
0
votes
1answer
27 views

Where do I go to edit this area? [closed]

I need to edit the area shown in my photo. I am using a child theme. I am unable to ask the question to the theme's website as I don't have a proper subscription. I have tried looking at both the ...
0
votes
0answers
20 views

How to reload masonry grid from Wordpress Sydney theme portfolio and image carrusel from Wordpress

I have a button that toggles from the image carrusel to the fp-portfolio widget. It works, but the problem is that when it toggles, the widgets appears like break or un-layout, but when I click in a ...