Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1412428
    Mohammad
    Guest

    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 Samaha

    #1412445

    Hey 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,
    Rikard

    #1412498

    Hi,
    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’);

    #1412502

    Hi,

    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,
    Rikard

    #1412518

    I would like to thank you a lot!

    #1412545

    Hi,

    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,
    Rikard

    #1412605

    Hi,

    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,
    Mohammad

    #1412634

    Hi,

    I’m not sure how other themes work unfortunately, I think you will need to refer to the documentation of each individual theme.

    I’ll close this thread for now then, please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Child Theme’ is closed to new replies.