My Slider Has Stopped Working!

  • Admin

    Syahir Hakim

    #34672

    What files do you have in your child theme?

    learningevarsity

    #34673

    I have the header.php, the footer.php and the style.css and a blank functions.php….

    Admin

    Syahir Hakim

    #34674

    If you see the theme’s documentation page regarding child theme, you’ll see that there’s a note regarding replacing theme’s files in the child theme (look under the “Special consideration” heading).

    You’ll have to delete the current header.php and footer.php files in your child theme, and redo the customisation again. Best to use the action hooks so that you’ll avoid these issues the next time there’s an update for the theme.

    learningevarsity

    #34675

    Thank you….

    So what you are saying is that I should customize the footer.php and the header.php in the parent folder; and never load these files into the child folder. Or if I do make the changes, these should be done only in the child folder’s footer.php and header.php files?

    Please clarify.

    Admin

    Syahir Hakim

    #34676
    Quote:
    So what you are saying is that I should customize the footer.php and the header.php in the parent folder; and never load these files into the child folder.

    No, you should not modify the files in the theme’s folders at all. However, copying the footer.php and header.php into the child theme and modifying them in the child theme is only marginally better. This is explained in the theme’s documentation that I linked to in previous post:

    Quote:
    If you place any of the WordPress template files into the child theme, the corresponding files from the parent theme will not be loaded. This means that when you update the parent theme, and that those template files have changed in the updated parent theme, you will miss out on those changes, since WordPress will not load those files at all. This is why you should never replace the theme’s template files in your child theme, unless absolutely necessary.

    The best way is to use action hooks, or if that is not familiar to you, try the Action Hook Widget Areas.

    learningevarsity

    #34677

    Thank you very much; what I did is copied the child theme files off-line and compared them to the parent files; then I went line by line making and testing every modification as I go along. Now I have learnt my lesson! Thank you once again…..

    learningevarsity

    #34678

    I am almost back to my normal working theme…yipee!

Viewing 7 posts - 21 through 27 (of 27 total)

  • You must be logged in to reply to this topic.
Do NOT follow this link or you will be banned from the site!