2022 Developer Survey is open! Take survey.

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
1 answer
40 views

Why is my child theme style.css not found (404) in the front-end? [closed]

I have a brand new Wordpress install (5.9.3) served by nginx (1.13.12). I'm using Docker containers for nginx and wordpress. I created a child theme based on twentytwentytwo following the WP codex ...
user avatar
  • 23
0 votes
0 answers
16 views

Changing update message from Newspaper child theme

Maybe my question is very particular and limited to Newspaper theme users. I’m using child theme with an update server. It works fine. I’m wondering if I can change this update message and actions ...
user avatar
0 votes
1 answer
51 views

Include widget file in functions.php of child theme

I've created a widget for WP 5.9.3, based on an online tutorial, which I'd got working okay, but it relied on having all the code in the child theme's functions.php, which started looking a bit messy. ...
user avatar
  • 101
3 votes
0 answers
22 views

Can I customize any WordPress parent block-based theme template files by child theme like a parent classic theme?

Usually, I can replace the template files and PHP codes of any parent classic theme with child themes. Since block-based theme templates rely on HTML, how can I replace parent block-based theme files ...
user avatar
1 vote
0 answers
30 views

Load in wp admin assets from child theme

I started to create a child theme from a BoldThemes theme with custom icons. I am able to see icons when edit directly page, but when try to edit page from wp admin, I've this issue I discovered ...
user avatar
  • 21
0 votes
0 answers
14 views

Post Publish date not display on Umaya Child themes

I can't find out the option of published date or modified date on my blog post. I write the this code <?php echo get_the_date() ?> but can't display the date. this is my blog post where I try to ...
user avatar
0 votes
2 answers
37 views

Correct Way To Make Changes To A Wordpress Theme

I'm just getting started with WordPress development and trying to understand the correct way to change small elements within a page such as Woocommerce: How to remove page title from storefront theme ...
user avatar
  • 103
0 votes
0 answers
28 views

Get webpack to work on child theme

I have previously created a child theme for the purpose of customizing some pages and it works fine, but now I'm facing some issues overriding the app.js file from my main theme. I'm following the ...
user avatar
  • 111
0 votes
1 answer
23 views

How to load Javascript code or functions.php later in a child theme?

I'm placing some JS code in functions.php in my child theme but it loads first than anything else. Thus, I'm trying to get it to load later than the rest cos it needs Jquery. I tried enqueuing WP's ...
user avatar
0 votes
0 answers
65 views

Reenable disabled Elementor widget via child theme

We hired an agency to develop a wordpress theme including some new Elementor widgets. Unfortunately they disabled some of the stock Elementor widgets in their Core theme add_action('elementor/widgets/...
user avatar
  • 173
0 votes
1 answer
65 views

Can only override parent theme styling with '!important' in child style.css

function my_theme_enqueue_styles() { wp_enqueue_style( 'twentytwentyone-style', get_template_directory_uri() . '/style.css' ); wp_enqueue_style( 'child-style', ...
user avatar
  • 17
0 votes
0 answers
12 views

how can I add filter in specfic field in my website?

I want to replace any saudian phone in specfic field in my theme "my-listings" in description and this my script in functions.php: function cudjex($text){ $text = preg_replace('/(009665|...
user avatar
-1 votes
2 answers
29 views

How do I activate my child theme, as I do not see it in developer tools

I uploaded a child theme from Astra, but the css or javascript does not display, but I was told to look if it is activated. I have looked in developer tools, and I do not see anything about a child ...
user avatar
0 votes
1 answer
117 views

Can't seem to get javascript code working from child theme

my javascript code isn't working. I put the js folder next to the other folders, the astra-child folder, astra folder and other themes. Is this correct. Then in the js folder, I created custom_script....
user avatar
0 votes
0 answers
48 views

Css will not display in webpage, after adding it in style.css in child theme

I have just started using wordpress again, after a long delay and cannot remember if I am putting the css in the child theme correctly. I placed a tiny piece of css code to display. I have put it in ...
user avatar
0 votes
0 answers
250 views

How to override any plugin file in the child theme

I have a plugin template that I need to overwrite but I need to be able to put the updated file in my theme to avoid changes getting overwritten by updates. The file is located at '/wp-content/plugins/...
user avatar
0 votes
0 answers
24 views

Advanced Custom Field Textarea not Showing (ListingPro Theme)

I'm using the ListingPro Theme from ThemeForest. I've added a Custom Field using Advanced Custom Fields as a Textarea. I have it showing at the bottom of Listing Categories. What I can't figure out is ...
user avatar
0 votes
1 answer
26 views

how to create a custom page in child theme or plugin?

i'm kind of new to plugins . for a project we need to create a special form which normal plugin won't help us . we should create a special form page which insert data to db . the main problem is ...
user avatar
0 votes
0 answers
141 views

How to remove font awesome from loading in wp theme

Question: How to remove font awesome from loading in theme and replace social icons with images? Theme Hueman - WP Multisite install What I did: In the functions.php of a child theme from Hueman Theme,...
user avatar
  • 23
0 votes
1 answer
26 views

Making a child theme for "Airi"

I had chosen the Airi theme for my WordPress website. I planned to make some customizations and decided to use a child theme. I had studied the WordPress documentation page https://developer.wordpress....
user avatar
0 votes
1 answer
35 views

Storefront theme : Add Categoy to recent products section

I want to modify the Recent Products section Storefront theme to be able to include juste a specific category. i tried that : add_filter( 'storefront_recent_products_args', '...
user avatar
  • 162
0 votes
0 answers
174 views

AJAX not working when clicking load more button, when two terms are present in tax_query

I have inherited a project using a child theme based on the Avada theme. The previous developer has created a plugin to add custom elements to the Avada fusion builder. One of those elements, the ...
user avatar
2 votes
0 answers
309 views

Uncaught Error: Call to undefined function get_user_by() after moving function from theme to plugin

I have a code I always used in my themes or child-themes. I'm doing right now a project with plugin-only as a solution, so I tried to copy paste some stuff from child-theme to plugin file, but I get ...
user avatar
0 votes
0 answers
40 views

Get only parent post in archive post

I created custom post type using cpt plugin and trying to create custom template to my new post type. I want to display only parent posts and then display child posts in parent post page, but when ...
user avatar
0 votes
0 answers
50 views

Javascript File Does Not Work

I created a page independent from the theme and added the php and js files of the pageto the theme folder, the php file works but the js file does not. Why could it be? PHP File: <?php if (!...
user avatar
0 votes
1 answer
24 views

Why would the child theme load in the Customize preview, but not on the site itself?

I have my child theme folder, the style.css sheet with the required template comment and some custom css, and I have the functions.php page with the required enqueing code. Everything seems to be in ...
user avatar
0 votes
1 answer
29 views

Can I place "parent theme" inside a child theme folder?

Client has a very strange request where they want to just install Child theme and have the parent theme be inside child theme. So essentially, they don't want to show parent theme in the list of ...
user avatar
0 votes
1 answer
36 views

Ajax call returning 0 in page template

I try to add custom form in my child-theme. I have been read all documentation of this issues but still return 0, this my code function.php (child-theme) function my_custom_scripts() { ...
user avatar
0 votes
0 answers
262 views

How to customize BuddyBoss Theme page header

Using the BuddyBoss Theme (and platform), there are 3 header/navigation style options available. How can I add a home page (front page) with custom header just for that one page; for example to change ...
user avatar
  • 113
0 votes
1 answer
46 views

What's the default order used by Wordpress to load CSS files?

I am working with a commercial theme on which I am making some style changes. Specifically, the parent theme shows a menu which I want to modify. The code for that menu is: <div class="mobile-...
user avatar
  • 158
0 votes
0 answers
71 views

Why does using wp_register_style without wp_enqueue load and print CSS tags in the front-end?

I have this piece of code that registers a CSS in a child theme and when visiting the front-end my_css is actually included. Why is that ? I thought that registering meant registering for later use to ...
user avatar
1 vote
1 answer
22 views

Modify some CSS with functions if (function_exists

I have code function php in my parent theme as path my_parent_theme/include/addon/myfile. I have tried using get stylesheet to load the parent function with no succeed. I just dont know how to handle ...
user avatar
0 votes
1 answer
64 views

Why does the Woocommerce grouped template prints the unpublished products?

It seems that the grouped.php template also prints products with status on concept. I don't know if this is normal behaviour, but that seems very strange. It only should print the products that are ...
user avatar
  • 125
0 votes
1 answer
408 views

Fatal error: Cannot redeclare load_stylesheets() (previously declared in

Updated Question: I’ve declared a basic child theme. As I create a function to enqueue stylesheets, my website crashes and gives me a Fatal error: Cannot redeclare thando_stylesheets() (previously ...
user avatar
0 votes
0 answers
19 views

Child THEME CSS won't load After Bootstrap CDN

I think the CDN is causing my child theme to be delayed. Can someone tell me what I am doing wrong here? <?php add_action('wp_enqueue_scripts', static function () { $deps = []; if (...
user avatar
0 votes
2 answers
547 views

Custom shortcode works in Elementor editor but not on frontend

I'm used to creating custom shortcodes through my child theme and Elementor, never a problem. However this time something is wrong, when I inserted the shortcode widget in Elementor editor my code is ...
user avatar
0 votes
0 answers
35 views

Products category search not working

I am trying to implement a product category search. Here is my searchform.php Here is the image of what I intent to achieve <form id="searchform" method="get" action="<?...
user avatar
0 votes
0 answers
14 views

Bootstrap Dropdown Menus not displaying the items within the dropdown in Wordpress

I am working on a child theme and have added Bootstrap just before the generic wp_enqueue_style of my theme to the functions.php as it follows: if ( ! function_exists( 'ghostpool_enqueue_child_styles' ...
user avatar
  • 1
0 votes
0 answers
121 views

how to override instance of class defined in parent theme?

I'd like to override how Dark Mode is implemented in twentytwentyone from a child theme. In the parent theme it seems to be defined in themes/twentytwentyone/functions.php. // Dark Mode. require_once ...
user avatar
0 votes
1 answer
100 views

Change child theme after updating parent theme

First of all, I apologize for my poor English 🙂 I use a theme for our site that needs a lot of changes. I was told to use Child theme, So that the changes we have made will not be lost in the next ...
user avatar
0 votes
0 answers
35 views

Add a plugin to a custom page created in Child theme

I have created a page template in child theme, to call some APIs and show results based on user input. The page template is working fine and it is taking user input, fetching data, storing in database ...
user avatar
  • 3
0 votes
0 answers
28 views

Enqueue Scripts from Parent Single.php for Child Theme to avoid copying entire file

Using a Child Theme setup, the standard method is to copy the entire single.php file from the parent theme and insert it into the Child theme folder, then modify or add custom PHP as needed. This ...
user avatar
0 votes
1 answer
36 views

How to set a custom post type as home page and set post page to regular post?

I am trying to create a child theme where I have created a custom post type i.e "art". I want to display all CPT posts to the homepage with pagination and the regular post to the post page. ...
user avatar
0 votes
2 answers
100 views

The requested theme does not exist. Stylesheet is missing - error after changing style.css name to my-styles.css in wp child theme?

I renamed style.css to my-style.css, but now I am getting an error in WordPress: "The requested theme does not exist. Stylesheet is missing." I know the reason for that error, but how can ...
user avatar
0 votes
1 answer
40 views

How to display custom fields in hestia theme

I want to display my custom fields on the Posts page just next to the author’s details, date, and any other meta data of post in the listed posts. I already have done this in Magazinenp theme ( ID:, ...
user avatar
0 votes
1 answer
451 views

Trying to add a custom social icon to a Twenty Twenty-One child theme

I am trying to add an icon to the Twenty Twenty-One social icons, but having trouble registering it. This support article refers to a Themes field guide for WordPress 5.5 which gives instructions on ...
user avatar
0 votes
0 answers
25 views

Change templates in a child theme

I wanted to edit code in a theme. I have created a child theme. I want to edit a posts-3.php file but the changes are not reflecting. Do I have to create folder paths with the same name as that of the ...
user avatar
1 vote
1 answer
75 views

How can I override file featured-image-first.php of Avada theme [closed]

I use the Avada theme, and I have created a child theme (Customweb) for it. I tried to override the file: wp-content/themes/Avada/includes/lib/inc/templates/featured-image-first.php And I try create ...
user avatar
0 votes
0 answers
19 views

javascript file not working in a plugin template file

Hello and thank you for taking time out of your day to help me. I am working on a website and I want to make minor changes to how a form is displayed. I am using a child theme, I have copied the ...
user avatar
  • 1
0 votes
1 answer
265 views

How to install Bootstrap in a WordPress child theme

I want to add Bootstrap to a WordPress child theme that I edit using Elementor. To do that, I used both CDN and bootstrap local files but neither worked. For the local files, I created a bootstrap ...
user avatar

1
2 3 4 5
25