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
10 views

Child theme stylesheet not reflecting the changes

I have created a child theme and the website is showing up properly with the activated child theme. I made some changes in the child theme's php files for adding two controls in the child theme's ...
0
votes
0answers
16 views

Hi, I have created a child theme but the changes are not showing

I have created a child theme and the website is showing up properly with the activated child theme. I made some changes in the child theme's Appearance - Customize section for adding some new controls....
0
votes
0answers
14 views

I want to capture the front page for Genesis Infinity pro child theme in functions.php [closed]

I am using Genesis Infinity Pro child theme. It is using widgets as Home page layout. That's why when I am trying to capture the front page using is_front_page() function, it is returning false when ...
0
votes
1answer
18 views

Is it possible to override only a part of another plugin's / theme's js (asset) file?

I try to go one step forward based on this question and instead of overriding the whole .js file of another plugin, i'm wondering is it possible to override/swap only a part of that js file ...
0
votes
1answer
13 views

Warning: printf(): Too few arguments in helpers.php file

So I'm getting the following error Warning: printf(): Too few arguments in /lib/helpers.php on line 34 So line 34 is 'class' => [] // Define the read more url function read_more_url() { // ...
0
votes
1answer
49 views

Child Theme not overwriting Parent theme php file

I'm new to Wordpress and how Child themes work. My child theme I am trying to overwrite two files in sub-directories. I've copied the parent files and edited them in child theme but changes are not ...
0
votes
0answers
17 views

Remove action not working in child theme

I am trying to remove action but it is not working: How can I remove this add_action('wp_footer', array($this, 'enqueueScriptsAsync'), PHP_INT_MAX); specific action in child theme? class TidioLiveChat ...
0
votes
0answers
29 views

WordPress childtheme not loading any CSS/SCSS

I'm using the BigFoot theme and I've made a child theme from this. I've set everything up, my child theme is activated in the wp-admin and everything looks good but for some reason my page isn't ...
0
votes
0answers
17 views

How can I override add_filter function which uses $this?

My goal is to change the registration email sent to new users. However, overriding the function responsible for sending the email does not work.. The relevant file in the parent theme folder looks ...
0
votes
0answers
13 views

Create Child page landing pages with search function

Hello all Neewb here so please bear with me. I am in need of a way to land child pages on a parent page. Before you jump at me, here is the situation. I own a condiment company, I would like to ...
-1
votes
0answers
8 views

Need Help For Realia Real Estate plugin with CMB2, added custom field using function.php showing to backend but not in frontend

add_action( 'cmb2_meta_boxes', 'custom_fields' ); function custom_fields( array $metaboxes ) { $metaboxes[REALIA_PROPERTY_PREFIX . 'general']['fields'][] = array( 'id' => ...
0
votes
1answer
10 views

Remove CSS Attribute by Overriding CSS in Child Theme

I have a theme I am trying to customize the style, and to do so, I have created a child theme. The child theme contains a style.css and I've been able to override certain attributes, but I can't ...
0
votes
0answers
7 views

How to avoid showing parent category if is not checked in wordpress

I'm not sure if what I'm asking is possible or not. Anyways, I'm fetching custom post type from the database based on category. When I tick subcategory or even subcategory of subcategory, all parent ...
0
votes
0answers
35 views

Remove parent theme's remove_menu_page action in child theme

My parent theme removes the Comments section of wp-admin in the parent theme: function remove_all(){ remove_menu_page('edit-comments.php'); } add_action('admin_menu', 'remove_all'); I want the ...
1
vote
0answers
17 views

How to change only one javascript function in wordpress child theme?

I would like to change just one JavaScript function in the child theme but without having to insert all the JavaScript code of the parent theme. How do I change only this function (I need change only ...
1
vote
0answers
12 views

How to integrate my HTML and javascript into my child theme

I have a javascript script, html, and css I put together on JSfiddle that I now need to essentially put on a page in wordpress. I'm using a child of the generatePress theme. I'm doing it this way ...
0
votes
1answer
23 views

How to enqueue multiple style sheets into my child theme in wordpress (oceanwp)

I would like to import several styles sheets in my child theme (oceanWP). I succeed to do it with "@import" method but not with enqueueing scripts and styles. My child theme uses this "style.css" : ...
0
votes
1answer
17 views

All Titles and Menus changed to “CHILD THEME LOADED”

I'm testing out a theme update on our website using a staged site created by WPStaging. That part seemed to work well. Then I upgraded the theme, created a child theme from it, and applied that ...
-1
votes
1answer
15 views

WordPress | enqueue_scripts in a child's theme returns error

I intended to load a script within a child's theme because I wanted to experiment with a feature. Initially, I loaded the script as follows: // loading menu toggle function function ...
-1
votes
1answer
13 views

add_action works outside condition but not inside it

I am developing a theme framework for my own purposes. So this time i am facing a problem, that is add_action works out side conditional. add_action( 'meanz_before_main_wrap', '...
0
votes
0answers
14 views

PHP “warning include_once(): Failed to open stream” Simple HTML DOM in Wordpress Child Theme

I am trying to include SIMPLE_HTML_DOM Library for my WordPress site. Unfortunately I get an warning. Below is my file tree in child theme include_once(): Failed opening '/var/www/html/wp-content/...
0
votes
0answers
11 views

Wordpress Staging site is redirecting to live and lost the child theme

I had a staging version for a WordPress site that contained a child theme as the main one, and everything was working well. After a few weeks, the staging site suddenly keeps redirecting to the live ...
0
votes
0answers
10 views

Comment replies are not nesting because of YoastSEO plugin

I am using a child theme of the Public Opinion theme by CSSIgniter. This child theme only has a few modifications. You can visit the website by clicking here. I am unable to nest comments from the ...
0
votes
2answers
22 views

Browser stacks different versions of style.css

I am working with a child theme from 'Astra'. I am editing 'style.css' of my child theme for styling my website. I added this code to my child's functions.php' file to enqueue the father-child styles. ...
0
votes
0answers
7 views

Theme functions don't work as expected in partial included via get_template_part() after custom query using Ajax [duplicate]

I am developing an custom theme which could be a child theme of any arbitrary theme out there that has custom theme functions defined. The home page is simply configured as list of latest posts. I ...
0
votes
1answer
12 views

Understanding the child / parent theme relationship

I am looking to edit the header.php file on my website. My parent theme has a header.php file. I copied that file to my child theme and added the necessary code. It seems to be working. My question ...
0
votes
1answer
19 views

What's a good way to allow overwriting files within a child theme if I want the same folder structure?

My parent theme has a structure like this Core\Utilities\Gallery.php. It's in the namespace of Product\Theme\Core and the file is loaded using composer's autoload. I thought to myself, I have a great ...
1
vote
1answer
38 views

the file placed in the child theme is not included

I have modified the theme.php file located in the parent theme in the "Includes" folder, and I have placed it in the child theme also in the "Includes" folder, but my changes are not included. ...
1
vote
2answers
15 views

How can I & how do I change text displayed in comment via child theme

This isn't a specific theme I'm asking for, well, yes it is, but I assume the answer would work on any theme.. I've recently learned little about child theme, but I'm not understanding how to change ...
0
votes
1answer
19 views

How Do I Unhook This Parent Theme Function?

In a parent theme I have a function like this, that removes hyperlinks from comments: function preprocess_comment_remove_url( $commentdata ) { //some code... return $commentdata; } ...
0
votes
1answer
13 views

Is there another way to customize a parent template file besides adding the file to a child theme?

In the 10+ years that I have been working with WordPress child themes, I have never seen a problem with a template file being copied into a child theme and customized, until now. There were function ...
0
votes
0answers
27 views

Best way to edit/change comment-template.php without changing the core

I've been modifying the include/comment-temple.php file, and since that modification will vanish upon updates Is there anyway to just simply copy the comment-template.php file from the included/ ...
0
votes
1answer
44 views

Swap SVG icons in child themes

The Twenty Nineteen theme uses inline SVG for its icons instead of icon fonts. The icons are added to the HTML code with the TwentyNineteen_SVG_Icons::get_svg() function. public static function ...
0
votes
1answer
37 views

WordPress filter load_textdomain_mofile not working inside a child theme's functions.php but works form inside a plugin

Function in a plugin is behaving differently than function in the functions.php inside a child theme. I have a custom simple plain plugin with nothing but the following code in it and it works ...
0
votes
1answer
21 views

How to load parent theme template parts in child theme

I was wondering how can I load parent theme template parts through child theme after customization. I have created three custom template for my theme and they are working fine. But now I want to load ...
1
vote
1answer
12 views

Child them function.php 'parent-style': should I name this as parent theme name?

When creating child them and setting up the initial function.php content: <?php add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' ); function my_theme_enqueue_styles() { $parent_style = ...
0
votes
1answer
16 views

Copying a modified theme from one wordpress site to another wordpress site [closed]

So, I have one website which was using a theme called "theme-xyz". In past, I directly made modifications to this theme, in header, footer and style. Now, I want to copy this modified theme to a new ...
0
votes
1answer
18 views

changing parent theme into child theme

I inherited a site that didn't use a child theme, and now it needs to be updated. Can I take the original parent theme, change the style sheet header, copy it into the root, delete everything but wp-...
1
vote
1answer
15 views

How do I call in a category title on a category page in a child theme?

I would like to pull in the Category Title as an H1 tag, but I don't know if it is possible to do without modifying the Parent Theme. For example I would like the category for this page [https://...
0
votes
0answers
12 views

Unable to translate with pot file Azuma Child theme

I have looked for a lot of information and I need to ask here because I'm not able to translate my child theme in Wordpress. I installed Azuma Theme (Free version) and, after it, I installed their ...
1
vote
0answers
18 views

Is it possible to add a ribbon in the background of h1 on every page?

I want to customize my h1 and to put a ribbon in the background like in the example bellow. Example: https://css-tricks.com/snippets/css/ribbon/ I'm not quite sure if/how it's possible to make all ...
1
vote
1answer
40 views

Create a post in custom post type using field in registration form after users submit form

As part of this project i have already created an Institute custom post type which i can see in the admin dashboard. What i want to do now is link it to the registration form. The logic is that when ...
0
votes
0answers
23 views

Best way for dynamically loading page content

I want to have the MyAccount-page of WooCommerce on a single page (~7 different pages, some include only tables with information and others forms to modify data) and dynamically load the content fired ...
0
votes
1answer
10 views

Widget is displayed in two places

I want to add a widget below page content in my child theme. I used a function from here: https://codex.wordpress.org/Widgetizing_Themes and the widget is displayed where I want: but it is also ...
0
votes
1answer
38 views

Started getting warning message following host's PHP upgrade

I am using a child theme of TwentyTwelve (the customer is always right). I recently started getting the following warning bot at the top of the Dashboard and on the Jetpack panel of the Dashboard: ...
1
vote
0answers
25 views

How to filter, restrict and return posts based on custom user meta information

On this online platform project i have requested all users to add in their school title. In the user dashboard there is a posts section which currently shows all posts. I want to only show posts that ...
0
votes
0answers
25 views

WordPress Child Theme CSS stylesheets not working

I created a child theme with the Child Theme Configurator plugin, but for some reason no styles I type into the child theme's stylesheets take effect on the website. I think it must have something to ...
1
vote
0answers
20 views

How to first edit in local Wordpress editor on page and the add code?

I started a local WordPress site using DesktopServer. (Atom for coding). And I want to start creating the new website by first creating a "page" in local WordPress and creating a basic layout, and ...
0
votes
2answers
29 views

Overrite parent functions using child functions

So I've tried a few different ways to override a method inside the parent theme and I'm not having much luck at all. So here is the structure: themes/ - wp-starter -- custom_header.php - wp-...
0
votes
1answer
13 views

How can I access variables from theme in child theme? [closed]

I am using a WordPress theme (Kalium Theme) as a base and extending it with my own child theme, which includes javascript & php files. The parent theme uses a image carousel plugin (Flickity) to ...

1
2 3 4 5
23