WordPress.org

Ready to get started?Download WordPress

Forums

Child theme not working (9 posts)

  1. kimbly.george
    Member
    Posted 1 year ago #

    I have created a child theme using the one-click child theme plugin and added the @import url("../catch-box/style.css").

    This isn't working. I have tried to create another child theme manually using my FTP client and copied and pasted the style.css theme from the parent, just adding the template line in, but thats not working either.

    Where am I going wrong? Is it a theme problem or (more likely), how am I going wrong?

    Any assistance would be appreciated.

  2. Krishna
    Volunteer Moderator
    Posted 1 year ago #

    Perhaps this will help:
    http://codex.wordpress.org/Child_Themes

  3. kimbly.george
    Member
    Posted 1 year ago #

    Hi Krishna

    Thanks for the reply. I used that exact page to help me conduct my first attempt at a child theme. I followed it to the letter, but still nothing.

    Thanks anyway.

  4. Sanjiv
    Member
    Posted 1 year ago #

    Hi kimbly.george

    This is the basic code to make the child theme which should be inside the style.css file of your child-theme folder.

    /*
    Theme Name:     Catch Box Child
    Theme URI:      http://example.com/
    Description:    Child theme for the Catch Box theme
    Author:         Author name here
    Author URI:     http://example.com/about/
    Template:       catch-box
    Version:        1.0
    */
    
    @import url("../catch-box/style.css");

    Hope this helps.

    Regards.
    Sanjiv

  5. kimbly.george
    Member
    Posted 1 year ago #

    Hi Sanjiv

    I copied and pasted your code into the style.css for the child theme and still nothing.

    Thanks for your help anyway.

    Kind regards

    Kim

  6. Sanjiv
    Member
    Posted 1 year ago #

    Hi kimbly.george

    I just checked it in the localhost and it is working. There must be other sort of problems. Is the child theme showing in the manage themes. Can you send the details or some reasons that might have caused the problem?

    Regards
    Sanjiv

  7. kimbly.george
    Member
    Posted 1 year ago #

    Hi Sanjiv

    I just rolled forward to the latest version of Catchbox so all the additional templates and changes I made to the files have been removed.

    I cannot understand it. The web address is http://www.pecuniaveritas.co.uk. I have activated the child theme. From what I understand the @import function should ensure that the css file from the catchbox theme is used.

    Does the same apply to page templates? Do I need to add any function to the main theme to recognise that I have added a child theme?

    I'm sure I am doing something wrong and any assistance you could provide would be appreciated.

  8. Sanjiv
    Member
    Posted 1 year ago #

    Hi kimbly.george

    In your child theme css you have successfully loaded the parent theme css but I see that some css are still missing. I think you are using catch-box version 1.1.2. Please update to the latest version 1.1.3.2 and see if any of your problems get solved. We have fixed some issues related to the child theme compatibility and submitted the new version update which will be available in few days.

    Regards.
    Sanjiv

  9. kimbly.george
    Member
    Posted 1 year ago #

    Hi Sanjiv

    The @import function still hasn't been working for me, so I literally copied and pasted the CSS from the parent to the child.

    I will update to the latest version and then check for updates in a few days time and try the @import function again.

    Thanks so much for your help.

    Kind regards

    Kim

Topic Closed

This topic has been closed to new replies.

About this Topic