Home Forums WoodMart support forum Add code in the header

Add code in the header

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

    Quentin
    Participant

    Hello,

    How i can add code in the header on the website ?

    I would like to add in header.php, but when i updated my website the code disappears…

    How i can do this ?

    Thanks

    #159574

    Hello,

    If you want to add some code in header.php then you can use the child theme for this purpose so your custom changes will not lost after updating the theme.

    So, if you want to install the child theme you do not need to download the child theme from somewhere. Because we already made it for you (you will found in theme package downloaded from themeforest). Here is the link that demonstrate how it works: https://developer.wordpress.org/themes/advanced-topics/child-themes/

    Best Regards.

    #159584

    Quentin
    Participant

    Hello,

    Okay, but on my child theme, i don’t have the header.php

    How i can do this ?

    #159614

    Hello,

    You have to create same directories and then copy the header.php file from the parent theme and then paste it to the child theme which you must have activated.

    Kindly also read and follow the below article for in depth guidance: https://developer.wordpress.org/themes/advanced-topics/child-themes/

    Best Regards.

    #159636

    Quentin
    Participant

    Okay thanks.
    I prefer use a plugin.

    Thank you so much !

    #159656

    Most Welcome,

    Let us know if there’s anything else we can do for you! You can always reach us at any time. We are always here to help you.

    Have a wonderful day.

    Topic Closed.
    Best Regards.

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Add code in the header’ is closed to new replies.