• Hi,

    Great little plugin, love it.
    However I’m trying to modify the header and add some html code to the bottom of it.

    This element:
    <div id="headerwrap" i-amphtml-fixedid="F1" style="top: calc(0px);">

    How can I go about this, so when I update the plugin I don’t lose my changes.
    Can I update the design 3 tempalte files, and will those changes be lost in future updates.

    Cheers

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor ampforwp

    (@ampforwp)

    Hey @devguy,

    Thank you so much for using our plugin.

    To make your plugin update proof you can follow the following tutorial
    https://ampforwp.com/extend-amp-plugin/

    Regards,
    Mohammed Asif

    Thread Starter devguy

    (@devguy)

    Hi Mohammed,

    Thanks for the quick reply, I noticed this tutorial and have used those hooks in my functions.php file.
    But I want to be more specific in where I can place code.
    Currently I have modified the header of the design 3 template.

    Will my changes to the design 3 template get overridden with updates. The file I updated is the header-bar.php and I added a div to the bottom of the file as the last element inside the <header> tags
    Thanks for your help ??

    • This reply was modified 7 years, 9 months ago by devguy.
    Plugin Contributor ampforwp

    (@ampforwp)

    Hey @devguy,

    If you are making changes in the main plugin then yes the changes will be gone with the update. That’s why we have made that tutorial to make the plugin update proof.

    Regards
    Marqas

    Thread Starter devguy

    (@devguy)

    Hi Marqas,

    So if I wan’t to modify the template beyond using the few hooks available I will need to create my own AMP theme. I figured this was the case.

    Cheers for your help

    Plugin Contributor ampforwp

    (@ampforwp)

    Hey @devguy,

    If you want to make a custom theme, then I guess this might help you.
    https://ampforwp.com/create-a-custom-amp-theme-for-wordpress/

    Regards
    Marqas

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Hook into or modify the deign’ is closed to new replies.