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
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
18 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
10 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
22 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
54 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
votes
0answers
21 views

Bootstrap not working in child theme (Avada Theme)

I'm trying to create a child theme for Avada theme i am load all css file in functions.php in child theme like this the problem bootstrap not working in child theme and use style of parent theme ...
1
vote
1answer
58 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
37 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
15 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. ...
0
votes
0answers
20 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
27 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
46 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
27 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
20 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
36 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
1answer
26 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
46 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
26 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
15 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 ...
1
vote
1answer
144 views

Adding extra SVGs to TwentyNineteen child theme using class TwentyNineteen_SVG_Icons

I’m trying to change the svg of the ellipses for the mobile menu. It’s called in this file: template-functions.php so I did a hook on my child theme functions.php to replace it, like so: function ...
2
votes
3answers
590 views

How to disable updates in WordPress theme

I am working on a WordPress website. Earlier before me, there was one another guy has worked on that website. Now he has done all his changes in parent theme without creating a child theme. Now, ...
0
votes
1answer
21 views

Is it necessary to network enable both the parent and child theme for multisite installations?

for multisite networks, is it necessary for me to network enable both the parent and child theme if I'm only using the child theme in my sites? Does it cause my site to slow down if I have more ...
0
votes
0answers
11 views

If i use a child theme to add new code blocks to header.php, how does it get inserted in the right place in parent's header.php?

I want to add <ul><li><a href="link">Link</a></li></ul> to my theme's header.php. This is new code that doesn't already exist anywhere. I have created a child theme....
0
votes
1answer
14 views

How to show metabox on page if it is using a template

I was creating metaboxes for a special kind of pages. But i got stuck when showing metaboxes to the pages only who currently have the template 'Sky'. my template file name is sky-template.php and ...
1
vote
2answers
118 views

Child Theme Path Being Ignored With wp_enqueue_scripts

I've created a child theme under wp-content/themes/my-theme with 5 files thus far: |-my-theme |----assets |--------css |------------bootstrap.min.css |--------js |------------bootstrap.min.js |----...
0
votes
0answers
12 views

How to display wp-signup.php with custom child theme?

I have a subdomain multisite installation using the unmodified twentyseventeen stock theme and a custom twentyseventeen-child theme. This works great except that, oddly, when someone enters an unknown ...
0
votes
1answer
37 views

Is_single not working properly in genesis

I am currently creating a child theme for my website which uses Genesis as a parent theme. Now I am making single pages as per my choosing. So, I am removing the entry header from within HTML main and ...
0
votes
1answer
33 views

Why submenu item's background color is not changing by css?

I am developing child theme based on Accelerate by ThemeGrill. I am trying to change submenu item's background color. However it is not affacted by any selector. I have tried to add following to ...
0
votes
2answers
27 views

How can I make custom page templates work on child theme?

I have created a page template called concert.php under page-templates directory with the following content: <?php /* Template Name: Concert*/ add_body_classes('page_concert'); /* Custom ...
0
votes
2answers
217 views

How to avoid loading style.css twice in child-theme?

I have twentyseventeen child-theme, and I found this code: add_action( 'wp_enqueue_scripts', 'child_enqueue_styles',99); function child_enqueue_styles() { $parent_style = 'parent-style'; ...
0
votes
0answers
21 views

Create a custom User Role within a Child Theme

I want to make a very custom user role; i.e. a 'sub admin' if you will. Some things I'd like to do would be to disable the 'html abilities' from within the 'edit page or edit post' mode for this user (...
0
votes
0answers
19 views

(Parent) theme Is Not Showing In Theme Selection Panel and Therefore Breaks Child Theme

I'm a WordPress developer but this one has left me scratching my head... I've got a parent theme and a child theme. Works great on my local machine, and was working great on my live server. However ...
0
votes
3answers
88 views

WP_Query returns different results from get_posts() [closed]

So I have two code snippets, trying to get the child pages of the current page. The current page is "Sample", and the following code lives in page-sample.php. The first snippet uses get_posts() $...
0
votes
1answer
36 views

How to add custom JS file in Wordpress Child theme with get_theme_file_uri

I just want to add a custom JS file in WordPress Child Theme underneath the parent script JS without using wp_dequeue_script() or wp_deregister_script(). I just Want to use the latest function ...
1
vote
1answer
15 views

Updating my free theme delete all my changes [closed]

I'm developing a blog. I'm using a free theme, and I've made a lot of changes, from style to scripts. I update my theme from version 1.02 to 1.03, and all my changes have been deleted. I didn't know ...
0
votes
0answers
18 views

Issue with navigation bar in child theme

I have created a child theme of the evolve theme. The evolve theme was not edited before localy and was just downloaded from the offical site. functions.php of child theme: <?php add_action( '...
0
votes
1answer
25 views

Reading POST over admin-ajax.php

Im trying read form POST values submitted over ajax call (admin-ajax.php).The POST is prepared and submitted. Here are the server side action hooks I have in Child Theme's functions.php add_action('...
0
votes
2answers
29 views

Child theme customizer preview doesn't work/load

Quick heads up, I know nothing much about php so I might need some extra help with this. So, I have set up a while ago a child theme for Astra in Wordpress. And while everything is working well so far,...
0
votes
1answer
41 views

Setting Up Child Theme To Take Priority

I'm trying to setup my child theme style sheet with a premium theme I have bought but I'm having a nightmare trying to get to work properly and efficiently. I have downloaded the theme's child theme ...
1
vote
1answer
28 views

Specific custom child theme page

I'm very new to wordpress and I'm still getting my head around this. So, I'm using twentyseventeen theme but I want my front page to be just a landing page with my logo and a button to press 'Go', I ...
0
votes
1answer
172 views

Show full post in category archive pages in twenty-nineteen theme

I am using twenty nineteen theme. It shows only the excerpt in the category archive page. I would like to show the full post. I created a child theme and copied the file archive.php to the child ...
0
votes
0answers
15 views

Why does my child theme's enqueue of styles mess up the order of script enqueues from the main theme?

I have a child theme, generated: function child_theme_enqueue_child_styles() { $parent_style = 'parent-style'; wp_enqueue_style($parent_style, get_template_directory_uri() . '/style.css' ); ...