-
AuthorPosts
-
July 4, 2023 at 2:54 pm #1412428MohammadGuest
Hi,
I hope you are doing well!
I have installed the child theme from the below link. Then upload and activate it. But when I add any new style to the new style.css
file. it is not working.child-theme URL:
Are there any ideas?
Best regards,
Mohammad Abu SamahaJuly 4, 2023 at 6:01 pm #1412445Hey Mohammad,
Does the CSS work if you put it in Quick CSS in the theme options? If you should need further help, then please post admin WordPress login details in private, and let us know what CSS is not applying.
Best regards,
RikardJuly 5, 2023 at 11:46 am #1412498Hi,
When I passed the code inside the Cotomize – additional CSS it works correctly.But when I passed the code inside the CSS file. it did not work.
I used this code to build the child theme.
<?php
function enfold_child_theme_enqueue_styles() {
wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );
}
add_action( ‘wp_enqueue_scripts’, ‘enfold_child_theme_enqueue_styles’);July 5, 2023 at 12:12 pm #1412502Hi,
Thanks for that. You should not need this code:
<?php function enfold_child_theme_enqueue_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); } add_action( 'wp_enqueue_scripts', 'enfold_child_theme_enqueue_styles');
I removed that from your functions.php file, and the CSS from the child is applying after that. Please review your site.
Best regards,
RikardJuly 5, 2023 at 3:17 pm #1412518I would like to thank you a lot!
July 5, 2023 at 7:53 pm #1412545Hi,
Great, I’m glad that we could help you out. Please let us know if you should need any further help on the topic, or if we can close it.
Best regards,
RikardJuly 6, 2023 at 11:11 am #1412605Hi,
Regarding the build the child theme. I want to ask if this is a role that we can apply to all of the WordPress themes. Or is this only on Enfold theme?
Because I’ve checked all the tutorials and Chat GPT. All of them say you have to add a code to the functions.php file.
Anyway. you can close the ticket.
I appreciate your help!
Best regards,
MohammadJuly 6, 2023 at 8:52 pm #1412634 -
AuthorPosts
- The topic ‘Child Theme’ is closed to new replies.