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 8 years, 11 months ago by
devguy.
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
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