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
0 answers
3 views

How to move custom icons from parent theme to the child theme

I have two sets of custom font icons that from my understanding are being loaded by two php files of the theme that i am making a child theme of : admin-style.php & icons.php admin-style.php : <...
Nick Delhanidis's user avatar
0 votes
0 answers
16 views

Child theme's functions.php not being read (child theme's autoload.php not being run)

Our child theme's functions.php contains: require_once __DIR__ . '/vendor/autoload.php'; However, the files that autoload.php loads are not being loaded, and a fatal error occurs. '/vendor/autoload....
Steve's user avatar
  • 1
1 vote
1 answer
31 views

enqueue_custom_scripts isn't working

I am attempting to use javascript to activate hotpots I have made in Wordpress, (using HTML and CSS but when trying to enqueue my custom script. Nothing is happening. function ...
CiaranQM's user avatar
0 votes
3 answers
45 views

Wordpress child theme widget customization - Eduma

0 I'm in a bit of a struggle at the moment so I could use some help. The thing is, I need to fix some fields for registration in the Eduma theme Eduma theme has it's own child theme called Eduma-child,...
PhantomPhreak1995's user avatar
0 votes
0 answers
14 views

ACF Pro simple Business Directory - Requesting assistance with created Templates and associated Functions.php Coding

I want to replicate the basic Business Directory functionality found at this URL. We've not had any luck with off-the-shelf software and our needs are very basic. https://onetopanga.com/directory This ...
Micah K's user avatar
  • 15
0 votes
1 answer
86 views

How do I create a single.php file as the default template for single posts in the twentytwentythree theme?

I am trying to create a single.php file to be the default template for displaying single posts in a child theme that I have created from the TwentyTwentyThree theme. The reason I want to set this as ...
Shanahando's user avatar
0 votes
1 answer
40 views

How to disable the autozoom on mouseover for the product image in Storefront theme of WooCommerce?

I'm currently using the WooCommerce plugin with the Storefront theme on my WordPress site. On the single product pages, the main product image has a default mouseover behavior that I want to modify. ...
David Menache's user avatar
0 votes
1 answer
20 views

Category theme template becomes default template for child theme

I am developing a child theme and have created a custom template for "category/ archives" page for a specific category However, For some reason this custom template has become the default ...
Kendall's user avatar
  • 179
0 votes
1 answer
42 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
23 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
21 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
34 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
42 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
40 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
33 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
125 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
533 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
40 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
37 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
25 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
47 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
368 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
161 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
24 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
364 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
349 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
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
2 answers
2k 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
67 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
1 vote
2 answers
172 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
61 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
412 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
30 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
45 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
32 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
618 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
143 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
61 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
222 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
312 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
31 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
622 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
79 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
51 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
27 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
41 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

1
2 3 4 5
25