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

twentytwenty children theme, using gutenberg, changing a title change them all

I started to look forward modifying thèmes and i made a children theme from twentytwenty. On the landing page, using gutenberg, i edited page name at top, then added some paragraph, gallery and when ...
akalabete's user avatar
0 votes
0 answers
18 views

Confusion about theme's parent and child functions.php file

So I read WordPress documentation here: https://developer.wordpress.org/themes/basics/theme-functions/ Where there's such statement: Although the child theme’s functions.php is loaded by WordPress ...
Erasus's user avatar
  • 101
0 votes
1 answer
19 views

Child Theme Reverts to Parent Theme After Activation: Customizations Lost

I'm experiencing an issue with my WordPress child theme. I created a child theme based on the 'drinkify-lite' parent theme and used the provided code to enqueue the parent styles in my child theme's ...
Marlon Montenegro's user avatar
0 votes
1 answer
28 views

How do I know if the custom theme is a child theme or a full-custom theme?

Inherited a custom built WordPress site. How do I know if the theme it uses is a child theme or a full-custom theme? I would like to delete the unused themes for security and to free up space, but ...
mimibushart's user avatar
0 votes
0 answers
29 views

Site with child theme breaks parent theme even after activating just parent theme

I have a site that was using the chromeblog child theme of chromenews. I wanted to change just a few .css values to adjust a couple colors and the sidebar width. Since I was under the impression I ...
Ed Hinton's user avatar
0 votes
0 answers
27 views

Intelephense not recognising parent theme functions

So i have the intelephense ext on VS code, and i have managed to have it recognise ACF functions by downloading the stubs to my computer. however, it does not recognise parent theme functions, ...
challenge2022's user avatar
0 votes
1 answer
29 views

How can I add ReactJS to the child theme?

So I wrote ReactJS, CSS and HTML code of a calendar, separately from WordPress development, and want to add this calendar to a specific page on my website. So far I have this code: function ...
Hercules' Creed's user avatar
0 votes
0 answers
13 views

Wordpress menus: Change URLs

I am new to Wordpress. I use it with Avada and Avada Child Themes. I have not set up the site, I only administrate it. In the following I will name all pages (sites, products, calender, ...) as "...
deified's user avatar
0 votes
0 answers
15 views

Updating plugins overwrite theme

I'm facing the same issue on the second website. Everytime I update a plugin, this disappears from the plugins directory and its files completely overwrite those in the active child theme directory. ...
MKay's user avatar
  • 179
0 votes
1 answer
66 views

Unload templates; disable parent Template Parts using only "theme.json"

I'm currently creating a child theme in WordPress and I'm having trouble with template parts and custom templates from parent theme. In particular, I want to disable some of the template parts ...
Vladan's user avatar
  • 101
0 votes
2 answers
336 views

Custom WP Blocks (register_block_type) in a Parent Theme

I have a parent theme that was developed as a project base, and within that I have been building up a group of completely custom WP Blocks (scaffolded with npx @wordpress/create-block). These blocks ...
Ben's user avatar
  • 338
0 votes
1 answer
37 views

Modifying posts based on category in TwentyTwentyTwo theme

This is quite a starter question. I want to change the style of all the posts in the "photos" category by adding custom CSS to the style.css file of my child theme. However, I cannot find any ...
Klosmi's user avatar
  • 1
0 votes
0 answers
32 views

Any plugin installation and update overwrite current theme

I'm facing a strange situation. I have a website with custom theme and custom child theme active and every time I try to update or install a plugin via admin interface, the plugin extracted files ...
MKay's user avatar
  • 179
0 votes
0 answers
23 views

Is it possible to load a child theme from a remote server?

Was wondering if we could store and serve a child theme (style & functions pages) on a remote server or website instead of a folder within the main theme & hosting? Or do you always have to ...
speedypancake's user avatar
0 votes
0 answers
43 views

Custom Theme Additonal CSS "<" and ">" are transformed to "&gt" and "&lt"

Im using Elementor Child Theme and in there im sometimes writing "Additional CSS" and till yesterday everyting was working correct. But since today "<" and ">" are ...
Rick H.'s user avatar
0 votes
1 answer
247 views

How can I use AJAX in child theme template?

I'm trying to perform an action with AJAX in a Child theme template in Wordpress. I've looked into many similar issues. However, I couldn't find a solution. I've been dealing with this for about 2 ...
peramsm122s's user avatar
1 vote
1 answer
120 views

Child theme css not loading when declared in parent functions

This code exists in the parent theme functions to load the child theme styles if the file exists but it is not loading at all even though the theme.css file is present in the child theme assets ...
zigojacko's user avatar
  • 242
0 votes
1 answer
23 views

post_row_actions filter from parent theme not executing in child theme

In functions.php for a theme I include a file that adds functionality to allow the easy duplication of posts - the include file contains the code from this (very useful) webpage. I include it like ...
toby1kenobi's user avatar
1 vote
1 answer
273 views

theme.json should be in the child theme folder when using xxxx.json style located in the styles folder?

I'm making a child theme of TT3. I'm using a json style in my child theme located in a styles named folder. Do I have to have a copy of TT3 theme.json in my child theme ?
Gilles L.'s user avatar
2 votes
1 answer
289 views

Twenty-Twenty-Two Child Theme Mega Menu

I’ve got a limited knowledge of CSS. What I know I've learned while programming. That said, I’m working with the Twenty-Twenty-Two theme. I’m trying to add a mega-menu to my child theme. The ...
Phil Huhn's user avatar
0 votes
0 answers
36 views

Issue with customizer and widget page

I have a wordpress website with hair and beauty theme, for some reason the customizer and widget page in wp-admin are not working and giving 404 error, i tried the following things so far check ...
Sankalp Chari's user avatar
0 votes
1 answer
48 views

How to fix enqueue_styles error for a twenty-seventeen childtheme

I have searched your site but cannot find and fix this error I get: Notice: Function wp_enqueue_style was called <strong>incorrectly</strong>. Scripts and styles should not be registered ...
Prink1978's user avatar
2 votes
1 answer
1k views

How to set the background color of a template part (Header/Footer) in Twenty Twentythree?

In Wordpress's shiny new Twenty Twentythree theme, how can you assign a background color to the header or foother template parts? Can this be done in a child theme - through theme.json? Or somehow ...
SePröbläm's user avatar
5 votes
0 answers
61 views

How to move the customizations done in the Editor to my child theme?

Dashboard -> Appearance -> Editor -> 3-dots menu -> Export lets one download a zip file, which contains the folders parts and templates that - according to various online tutorials - ...
anick's user avatar
  • 151
0 votes
2 answers
144 views

Remove Google Fonts from parent theme within a child theme [closed]

I'm using a third-party theme with a custom child theme on a website and want to remove the Google Fonts from the parent theme within the child theme's functions.php. This is not working - nothing ...
winnewoerp's user avatar
0 votes
1 answer
51 views

Custom Post-Rename Function Does Not Function in WordPress 6.x

I have the following function in functions.php in a child theme: <?php add_filter( 'wp_insert_post_data' , 'modify_post_title' , '99', 1 ); // Grabs the inserted post data so you can modify it. ...
Zyniker's user avatar
  • 105
0 votes
2 answers
213 views

How can I show template dropdown in custom post type?

I have created a new custom post type in wordpress using register_post_type() function But when I click on add new in right side the editor not showing template choose option as you can see in ...
Irfan Emon's user avatar
0 votes
0 answers
29 views

ways to create customized theme (hard coded - no pagebuilder)

I'm a front-end developer, I have question hope u guys can help me, what do you think is the best practice to create a customized theme? I have this project and I'm contemplating which method to use. ...
agent abstract's user avatar
0 votes
0 answers
21 views

Check if style is declared in child theme from within parent theme. if so, use that style in parent theme

Wondering if there is a way to check if a scss style is declared in a child theme. If it is then i would like to use that style inside its parent theme. Does something like this exist?
user226058's user avatar
0 votes
2 answers
38 views

How to handle a large child theme

I downloaded a theme which was set up with lots of "unnecessary" functions, but the core funtionality is good, rare, and very hard for me to re-create, so I want to stick with it. However, I ...
eligolf's user avatar
  • 123
0 votes
0 answers
31 views

Inline CSS header style priority function.php Child (no enqueing I think)

I am webdesigner that knows some basic CSS and HTML. I never worked with PHP and I don't know how to handle this problem but I think it's fairly easy... Well I hope. This is the code: <?php if ( ! ...
Pim Van Delft's user avatar
0 votes
0 answers
34 views

How to replace function in child theme?

There is a function in the parent theme: function latest_comments($list_number = 5, $cut_length = 50) { global $wpdb, $output; $comments = $wpdb->get_results($wpdb->prepare("SELECT ...
Varnothing's user avatar
0 votes
1 answer
507 views

How to override theme class function to child theme? [closed]

File: wp-content\themes\theme-t\includes\classes\ClassX.php class ClassX extends Base { public function some_logic() {} } I want to change the logic of some_logic() via child theme, how it is ...
Sohil's user avatar
  • 3
0 votes
1 answer
109 views

Show excerpt and not full post in Twenty Seventeen

Help a non-coder out! I tried using child theme configurator, and have successful created a theme child, but it doesn't appear to contain the same code as the parent theme. And all the answers to a ...
Clovis's user avatar
  • 1
0 votes
1 answer
56 views

Child Theme style.css changes aren't showing. Parent "style-less.css" over rides it, and won't update

I'm using a child theme with a style.css file and none of the updates are showing on the live site. When I view the child theme style.css file via "view page source" the changes show in the ...
Derek's user avatar
  • 91
1 vote
1 answer
182 views

Alias to theme folder for local development

I am locally developing a parent theme and child themes simultaneously (perhaps not best practice, but...). It looks something like this: parent.local /wp-content/themes/parent-theme/ child1.local ...
nickfindley's user avatar
0 votes
1 answer
290 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 ...
Manumie's user avatar
  • 43
0 votes
0 answers
29 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 ...
Emmanuel Borges's user avatar
0 votes
1 answer
508 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. ...
Cheddar's user avatar
  • 101
3 votes
0 answers
77 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 ...
Mahadi Hasan Juber's user avatar
1 vote
0 answers
49 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 ...
salsan's user avatar
  • 121
0 votes
0 answers
26 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 ...
Nasim Amjad's user avatar
0 votes
2 answers
40 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 ...
Adam's user avatar
  • 103
0 votes
1 answer
52 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 ...
ratib90486's user avatar
0 votes
0 answers
84 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/...
jam's user avatar
  • 183
0 votes
1 answer
2k 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', ...
BeccaN's user avatar
  • 17
-1 votes
2 answers
32 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 ...
Spencer Halstead's user avatar
-1 votes
2 answers
814 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....
Spencer Halstead's user avatar
0 votes
0 answers
218 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 ...
Spencer Halstead's user avatar
0 votes
0 answers
2k 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/...
Ibrarr Khan's user avatar

1
2 3 4 5
25