Home Forums WoodMart support forum The correct way to add a custom script after opening body tag?

The correct way to add a custom script after opening body tag?

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

    peter.forensys
    Participant

    Hi.

    Which is the best way with your theme to add a custom script after opening body tag? Because plugins like insert headers and footers are just not working 🙁

    Thanks

    #212647

    Artem Temos
    Keymaster

    Hello,

    Usually, we use this plugin and it works correctly. Otherwise, you will need to customize template files but we don’t have instruction for such customizations. You can try to edit header.php and footer.php file.

    Kind Regards

    #212657

    peter.forensys
    Participant

    If I copy the header.php from theme folder to child-theme folder and I edit that I won’t lost customizations I will do at theme updates, right?

    #212672

    Artem Temos
    Keymaster

    Yes, the file will not be overridden after the update. But note that if we change our header.php file in the parent theme, you will need to manually check this and add these changes to your child theme. Otherwise, the theme may not function correctly.

    #212680

    peter.forensys
    Participant

    Okay, thank you! I managed to put my script into the body.

    #212682

    Artem Temos
    Keymaster

    You are welcome!

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

The topic ‘The correct way to add a custom script after opening body tag?’ is closed to new replies.