[Support request] editing html template

Home Forums Support [Support request] editing html template

Home Forums Support editing html template

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

    I need to add html code into head tag of my generatepress pro template.
    How can I do?
    I think this is a beginer’s question but I can’t see the steps I need.
    Thank you

    Hector

    #293894
    Leo
    Staff
    Customer Support

    Hi Hector,

    Try using GP hooks and add it to wp_head.
    https://docs.generatepress.com/article/hooks-overview/

    Let me know if this helps.

    #293920
    Hector

    Great, Leo
    but I don’t looking for this.
    I want to modify html code of my template.
    I need add some javascript call, similar to googleapis or jquery.
    Thanks

    Hector

    #294035
    Leo
    Staff
    Customer Support

    Adding it to wp_head or wp_footer should both work?

    Or are you hoping to use a child theme?
    https://docs.generatepress.com/article/using-child-theme/

    You just don’t want to add the code to the theme’s core files since it won’t be saved through updates.

    Let me know if this is what you are after.

    #836914
    Emmanuel

    Sorry to bring this back up but can i change the HTML of the template when i use a child theme ?

    #837144
    Leo
    Staff
    Customer Support

    Yes.

    If you want to change the HTML of the template, child theme is the only way actually.

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