Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
22 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 ...
-1
votes
0answers
11 views

Adding widgetized areas to a child theme - works on clean site but not live site

I need to add a widgetized footer to a theme for my client. I couldn't create a staging site because of memory usage on their hosting account, so instead I set up a clean WordPress install, created a ...
0
votes
0answers
22 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
32 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
25 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
20 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
20 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
18 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
21 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
10 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
20 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
42 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
10 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
67 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
341 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
17 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
95 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
10 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
35 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
31 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
26 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
102 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
20 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
66 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
35 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
23 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
27 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
32 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
112 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' ); ...
0
votes
1answer
53 views

Wordpress override archive page template using a plugin

I am editing the archives template of my wordpress archive pages for specific post types and taxonomies only and I want to package it all in one plugin instead of adding it on my functions folder and ...
0
votes
1answer
22 views

Wordpress child theme, creating a custom php template page

I am currently working on a project that uses a child theme (storefront is the parent theme). I need to be able to code using pure php / javascript (outside wordpress admin). Other custom template ...
0
votes
2answers
33 views

Where can I edit/see the HTML of this Wordpress free theme?

the answer to this one will probably be obvious to many of you, but I recently decided to make a website for my girlfriend and expand my knowledge while doing that. So here is my dilemma: I am using ...
0
votes
1answer
33 views

How to customize a section of a widget only on certain pages or page

I am using the twentynineteen default Wordpress theme but I would like to know how I can remove this line <?php get_template_part( 'template-parts/footer/footer', 'widgets' ); ?> only on certain ...
0
votes
2answers
24 views

Child theme after CSS modification

Hi I used the Edin theme to build a wordpress website. I modified a big part of the CSS at the CSS editor, without having a clue what a child theme is. What should I do now? Create a child theme and ...
0
votes
0answers
23 views

Child theme home page doesn't appear, as i view my site

I created a child theme of twenty nineteen, but as I go to view my site, instead of showing the homepage of twenty-nineteen, it shows somewhat jumbled up view of my last active (bridge)theme and ...
0
votes
0answers
10 views

Child Theme of a Child Theme [duplicate]

I'm making a child theme of a proficient theme (that is a child of specia) I created a "proficient-child" folder and created style.css and functions.php with modifications. I put this code to load ...
0
votes
0answers
22 views

Jquery enqueued script in child theme not proccing

I created a child theme of the theme twenty-seventeen. I want to add some scripts, especially Jquery libraries and some custom Jquery to animate the homepage. This is what I have in functions.php (...
0
votes
0answers
44 views

Child theme menu not appearing in Twenty Seventeen

I am trying to add two menus to the same location on a wordpress site. Which menu is displayed will be based on which page is being viewed and can be handled easily with CSS. I created a child theme ...
0
votes
1answer
48 views

all of a sudden my child theme style.css is being ignored? Its been working fine for months?

anyone have any idea what could have caused this? Thanks https://www.subscriptionboxaustralia.com/directory/
0
votes
0answers
19 views

Unable to remove action from parent theme

I have a problem with remove action from parent theme in my child theme. Parent theme code: add_action('custom_action_name', 'function_name', 10); function function_name() { //something } Child ...
0
votes
0answers
77 views

Change WP Child theme CSS for WP Bootstrap Starter Theme

I am having trouble figuring out how to change styles for the WP Bootstrap Starter theme. I've created a functions file with the following: <?php function my_theme_enqueue_styles() { $...