We’re rewarding the question askers & reputations are being recalculated! Read more.

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
2answers
29 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
24 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
12 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
24 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
75 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
90 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
20 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
182 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
91 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
69 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
23 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
53 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
39 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
22 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
25 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
44 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
14 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
44 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
32 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
15 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. ...
1
vote
1answer
48 views

Child theme enqueue scripts using new functions

To enqueue I have used get_theme_file_uri('/style.css'). Now I have created a child theme using a generator and it created a code like the following; but it throws a php error with parent-style. Is ...
0
votes
1answer
76 views

Copyright info change - Corporate Plus Theme PHP [closed]

I have been trying to do this for hours now but just can't get this to work. What I am trying to do is change the copyright info in my wordpress theme which is being pulled from wp-content\themes\...
1
vote
1answer
59 views

Loading files for theme and child theme (Require)

There seems to be so many options which one should i go for..it's really confusing? I have used get_template_directory(). What i want is to use a function that works best with child theme and that ...
3
votes
0answers
65 views

replace parent theme images in child theme

My images are found in the parent theme in this folder directory structure: public_html/wp-content/themes/listingpro/assets/images I tried placing replacement images with the same name in the ...
0
votes
0answers
13 views

Fixed bottom menu on mobile doesn't work on search included in Child Theme of Storefront

I included footer of parent theme "Storefront" into the footer of my own child theme that I have created. The main purpose is having a fixed bottom menu on mobile version. It is all working well, ...
1
vote
2answers
140 views

Proper way of using functions in action hook?

I am wondering if the below logic is correct and if certain circumstances should be present for it to work, since in some cases it does not seem to be working. The example below is quite simple. Let'...
0
votes
1answer
286 views

Font Awesome wp_enqueue_style

I have been trying to get the same code I have on my old server to work on my new server. This is the code I have thus far: function enqueue_load_fa() { wp_enqueue_style( 'load-fa', 'https://use....
0
votes
3answers
71 views

How do I create a child theme from PowerMag theme

I am using PowerMag 2.5 as parent and can't seem to find a way to get a working child theme. As far as I am now, I can only extend css in the style.css but as far as overriding, nothing has worked. ...
0
votes
1answer
49 views

How to neutralize a parent theme php template?

I use to work a basic theme with a child-theme. The parent theme contains the woocommerce.php template, which I would like to disable in the child theme. I already used several codes in the child ...
1
vote
0answers
15 views

Child Theme disable customizer defaults

I am trying to extend twentyseventeen theme. I want to achieve two simple goals. No custom header image Don't show the Title and tagline by default. But I would like to keep those options available ...
0
votes
0answers
18 views

Error on custom WordPress child theme

With a new client site i have the following error: Notice: Constant TEMPLATEPATH already defined in /home/my-site/v2/wp-includes/default-constants.php on line 343 That means that a constant is ...
0
votes
1answer
26 views

Font size decreases when child theme is created from parent theme?

While creating and activating the child theme, the font size decreases as compared to parent theme <?php function my_theme_enqueue_styles() { $parent_style = 'spicepress-style'; // This is '...
0
votes
1answer
13 views

How to get custom translations from child theme to be loaded?

I have a child theme that loads translations normaly but if i added custom translatable strings that doesn't exist into the parent, how to add these strings to the main po file or how to load it ...
0
votes
1answer
170 views

Custom homepage with recent blog posts

I have a self-hosted site on wordpress.com - I have been told it isn't self-hosted. Basically, I have my own domain but use Wordpress as a platform. I am currently trying to create a home page where ...
0
votes
1answer
15 views

Change default color scheme in twentyfifteen child theme?

I read the previous ask about this. And tried renaming my scheme to "default" and it didn't work. I am implementing the child theme on 50+ blogs on a network and I would like to just click "Activate" ...
1
vote
1answer
42 views

Child theme dosn't overwrite WooCommerce (version 3.4.7)

I've followed the WooCommerce instructions for child themes including declaring the child theme: function theme_woocommerce_support() { add_theme_support('woocommerce'); } add_action('...
0
votes
1answer
42 views

Include style.css in the Child Theme with PHP

In https://codex.wordpress.org/Child_Themes is written that the best practice for including style.css in the Child Theme one must put the code below into the functions.php of your Child Theme but ...
0
votes
1answer
197 views

How to test another theme in a live WordPress website instead of live preview?

I want to implement a new theme called Hepta on my current website, but when I test it using the live preview, it shows me limited content and features as it imports most of the contents from the ...
0
votes
1answer
271 views

Ajax call in WordPress - unable to display the data on the page

Ultimately, my goal is to obtain the latitude and longitude of the current user and then be able to save it into the database. Before that I need to make an ajax call from jquery and pass these ...
0
votes
1answer
141 views

In modifying a file in a subfolder in a child theme, do I need all the files in that sub folder in my child?

I am working with a Child theme and I needed to change a page in a subfolder in the theme. I uploaded the entire folder with all the enclosed files and modified the one file which worked. My question ...
0
votes
0answers
22 views

Where to find child themes?

Is there a method of finding child themes? I tried searching the Wordpress Theme Directory, but most themes do not seem to have children. Some featured in the "Twenty Fifteen" search actually are ...
0
votes
1answer
99 views

Create New User Custom Field not Saving

I've added a function to my child-theme to add a new field in the Add New User section so that you can select if the member is either just a member or candidate etc : function ...
1
vote
1answer
41 views

Creating a child theme from Twenty Seventeen

I need to create a child-theme from Twenty Seventeen on a site that has been running for a while so I can make some modifications. If I switch it to the child theme will I loose all the menus, widgets ...
0
votes
4answers
43 views

About wordpress child themes

I have some questions about WordPress and child themes. From what I understand using a child theme is important if I don't want to loose anything when updating the theme. I am a beginner at WordPress ...
3
votes
2answers
2k views

How to override the “inc” folder (or any folder) in a theme using child theme?

I am using Storefront theme (But question isn't specify to this theme, I am asking question for any theme). I can easily override files like header.php, footer.php using child theme(just copy and ...
3
votes
3answers
459 views

add_image_size is scaling, even though crop is set to true

I am trying to crop a 1000 x 648 image to 400 x 400. I use this code in functions.php add_theme_support( 'post-thumbnails' ); add_image_size('shop-size', 400, 400, array(center,center) ); ...
1
vote
1answer
56 views

Child theme not using parent theme css/styles/formatting?

I am making a simple child theme of the "Grow Minimal" theme. I created a folder, grow-minimal-child and added functions.php and style.css: functions.php: function my_theme_enqueue_styles() { $...
1
vote
2answers
104 views

How do I check for child theme files first using include, before going to parent theme?

I'm creating a WordPress child theme based on an existing parent theme, and I'd like to have any same-named file I put in my child theme directory take priority over the file in the parent theme ...
0
votes
0answers
190 views

Unhook a function within a class in the child theme

I am using Hestia theme and I want to unhook the function that displays footer copyrights to replace it with my custom function, I tried the remove_action() in my child theme functions.php but it didn'...