[Support request] Child theme header.php is not loading

Home Forums Support [Support request] Child theme header.php is not loading

Home Forums Support Child theme header.php is not loading

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #987751
    Steve

    Hey,

    I am using a child theme off GeneratePress, which is working perfectly. However, I want to make some modifications to header.php so I have copied that file and have the modified version of it sitting in my child theme folder. But for some reason it is not overriding the parent theme version.

    Do I need to do something else to ensure the override?

    Thanks,

    S

    #987812
    David
    Staff
    Customer Support

    Hi there,

    there should be nothing more you need to do. As long as the filename hasn’t been changed then it should load.

    What changes are you looking to make to the header?

    #987816
    Steve

    I’m just adding a line for my Adobe fonts to show up into the <head>.

    I’m doing it on a staging site, and I think that might have something to do with it not working actually…

    #987820
    David
    Staff
    Customer Support

    In that case you can add your script to the WP_head hook using a Hook Element:

    https://docs.generatepress.com/article/hooks-element-overview/

    #987822
    Steve

    Oh nice, didn’t realise I could do that – thanks!

    #987825
    David
    Staff
    Customer Support

    The Elements module is super powerful – a real time saver. Glad to be of help.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.