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.

-1
votes
0answers
14 views

Stylesheets being served from different url's

I have just checked my site on gtmetrix and all seems good other than the first tab "Serve resources from a consistent URL" It seems that there are 2 versions of th e same script being served, I ...
0
votes
0answers
9 views

Mobile version Divi Builder gives a bar on the right side [on hold]

I am using Divi Builder to build a site and it is not working properly on smartphones. When loaded, it gives this extra space on the right side and I can't seem to figure out where this is coming from....
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
70 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
26 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
0answers
12 views

How to use comments on a page template? Can't get them to show [closed]

I made a custom JS tool with a page template. It is set up like page-mypage.php. I want to add comments at the bottom, like what you see in regular pages. I enabled the "allow comments" checkbox on ...
0
votes
0answers
21 views

Changing Theme for my needs [closed]

I have new empty site with new empty theme on Wordpress. It is simple portfolio site with several pages. Main information located mostly in theme files (in blocks). These blocks are not simple html ...
0
votes
1answer
29 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
1answer
33 views

How do I change the Search text within a search field? [closed]

How do I override the search text within the Hueman theme search box without editing any php files? I want to change the words "To search type and hit enter" to "What do I want to do?"
0
votes
2answers
20 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
39 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
19 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
18 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
49 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
34 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
21 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
23 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
24 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
0answers
42 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
24 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
31 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
23 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
22 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
22 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
8 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
29 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
31 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
14 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
46 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() { $...
0
votes
2answers
46 views

Hwo to turn off “get_parent_theme_file_path” in child-theme?

I have the Twenty Seventeen theme and I would like to turn off generate SVG (social icons menu) in DOM. https://i.imgur.com/HZCqOgV.png How can I turn off it? I do not use the social icons, but it ...
0
votes
1answer
24 views

Hestia Child theme creation

I'm working on creating a child theme of Hestia for my own website but I'm just not getting where the code is supposed to go in my child theme coding. I know how to design websites and I'm familiar ...
0
votes
2answers
20 views

Modifying a child theme

I successfully created a copy of a theme in WordPress and now have a child version. I was hoping to be able to modify it further but from this point I do not understand what options are now given to ...
0
votes
1answer
18 views

How to include any template using Shortcode fuction?

function custom_code(){ return include( get_stylesheet_directory() . '/custom-template.php'); } add_shortcode('custom_shortcode','custom_code'); As you can check above I want to include a ...
0
votes
0answers
13 views

Google trying to index child theme files

I have created a child theme as per Wordpress recommendation to customize my site.It is working as expected however, I am seeing some Server error (5xx) reports in the Google search console. It seems ...
1
vote
1answer
22 views

How to create child theme of already active and customized theme

I just started at a new company with multiple WordPress sites and none of them use child themes. I've seen posts here about using comparison scripts to compare the files to a fresh version of that ...
0
votes
0answers
18 views

How can I add a logo to the hamburger menu?

I have a mobile hamburger menu setup, but I am having trouble adding my logo to the left of it. This is coded to go against the theme. Any idea on how I can add a clickable logo to the left of the ...
0
votes
1answer
21 views

How to overwrite core/libraries/vendor template with child theme

A theme that I am using is overwriting the woocommerce templates with files in theme/core/libraries/vendor/woocommerce/templates folder. I tried to overwrite some minor stuff by following the best ...
0
votes
0answers
13 views

Edit Product Archive design for Woo theme

Hello, I am very inexperienced in code and WooCommerce themes. I didn't even get a working child theme out of my Upstart parent theme. It would be nice if someone could give me some help because I ...
0
votes
0answers
12 views

Child theme isn't appearing on the menu

I'm a beginner to Wordpress in general, and i'm practicing on local. So far i simply installed WAMP and put my blank site on it. I want now to pick my theme and start tweaking it a little. I looked ...
0
votes
1answer
24 views

How can I fix my theme header for my CSS stylesheet?

/*  Theme Name:     Its Bullish  Theme URI:      https://www.itsbullish.com  Description:    Its Bullish  Author:         Bullish Advertising  Author URI:     https://itsbullish.com  Template:       ...
0
votes
1answer
25 views

Posts feed number of posts

Happy Holidays everyone! I hope you can help me with this 'little' problem I'm having :) I am using a child theme based on Elara which displays the posts feed in different formats on the front page ...
0
votes
0answers
12 views

How to get a canvas element above the footer?

I'm struggling to get the canvas to be above the footer while using a three.js script. I pass my canvas in to webglrenderer, but then it pops the canvas to the bottom and puts the footer above it. ...