[Support request] Can I use Hooks to insert scripts in Header and Footer code of the wordpress

Home Forums Support [Support request] Can I use Hooks to insert scripts in Header and Footer code of the wordpress

Home Forums Support Can I use Hooks to insert scripts in Header and Footer code of the wordpress

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1580811
    Pawanpreet Kaur

    Hello,

    I am using the premium version of the GP and I am more than happy with its performance. So, first of all, thank you very much for the amazing product and service.

    I would like to remove the header and footer script inserting plugin from my website so I wanted to know can I insert those scripts using GP Hooks? They are Google analytics, Google Adsense code, Pinterest scripts, Mailchimp script etc.

    I am not using a child theme so will any future update remove those hooks or change anything?

    Also, will you be adding any post or picture carousel to the theme in future?

    Thanks.

    #1580817
    Leo
    Staff
    Customer Support

    Hi there,

    I would like to remove the header and footer script inserting plugin from my website so I wanted to know can I insert those scripts using GP Hooks?

    Absolutely!

    You can use wp_head and wp_footer hook with the hooks element module:
    https://docs.generatepress.com/article/hooks-element-overview/

    Those won’t be erased during updates.

    Also, will you be adding any post or picture carousel to the theme in future?

    No – those belong in the plugin territory. We try very hard to avoid bloat in GP so only adds options/features that are useful for the majority of our users πŸ™‚

    #1580822
    Pawanpreet Kaur

    Hello,

    Thank you for your response that takes at least one plugin off my website. πŸ™‚ πŸ™‚

    #1580834
    Pawanpreet Kaur

    Hey, another question here, please. I found this article to add SM buttons using hooks in GP. Can you please have a look to see if it’s good.

    https://www.wplogout.com/create-social-sharing-buttons-in-generatepress-without-plugin/

    Thanks.

    #1580841
    Elvin
    Staff
    Customer Support

    Hi,

    Hey, another question here, please. I found this article to add SM buttons using hooks in GP. Can you please have a look to see if it’s good.

    It should work. It’s simple yet the links are dynamic so it shouldn’t be an issue.

    As for it being “good” is something pretty subjective. If you like the design, then go for it. πŸ˜€

    A wise man once said:
    "Have you cleared your cache?"

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