Stack Exchange Network

Stack Exchange network consists of 174 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
9 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
15 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
18 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
7 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
21 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
19 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
19 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
12 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
14 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
31 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
16 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
0answers
9 views

Editing Avada child theme? [closed]

I am currently setting up a web site and my current theme doesn't allow to keep the side bar after the first page of the store. Any Ideas web site
0
votes
2answers
17 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
16 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
12 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 ...
0
votes
1answer
19 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
17 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
17 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
9 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
10 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
18 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
24 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
11 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
24 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
35 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
31 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
33 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
11 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
138 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'...
-1
votes
0answers
20 views

Child theme is not a valid parent theme [duplicate]

I need to customize Orfeo a child theme of Hestia theme. Also I create a child theme of the orfeo, but I got the error "orfeo is not a valid parent theme". /* Theme Name: Orfeo Child Theme Theme ...
0
votes
1answer
59 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....
-1
votes
0answers
42 views

How to override parent function $title in child theme

I made a child theme and want to override some text produced by a function but i am not sure how to do it or where to put the code in my child theme directory. Original: $title = __('Recent Posts', '...
-1
votes
0answers
34 views

set_query_var get_theme_mod not working on child theme

I created a child theme, and when I go into the customizer certain options which are read using "get_theme_mod" appear but they do not save or preview. I have the following code that works as desired ...
0
votes
3answers
66 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
31 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
10 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
13 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
15 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
10 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
34 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
8 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
27 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
28 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
31 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
67 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
18 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
21 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
43 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 ...
0
votes
0answers
16 views

Something in parent theme is preventing child theme from being able to crop images

I have a dilemna where I can't crop images with add_image_size() in my child theme. Instead of cropping, the images are scaled. I've tried all the usual stuff like regenerating images and changing ...
0
votes
0answers
23 views

Infinity Pro (Genesis) - how do I hide the header and show it only on scroll?

I'm using the Infinity Pro child theme on the Genesis framework. For my home page, I'm trying to get this behavior for the header: https://youtu.be/WsOj39i8GJw As shown in the video, I want my header ...