Archived topic
GP Elements and AMP
4 replies · Started by Kevin on January 6, 2021
Hey,
actually i created a child theme for AMP like the writing it here on Scenario One ( https://amp-wp.org/documentation/playbooks/adding-reader-themes/).
Now much stuff is working well but i would love to make the stuff slimmer and would ask if there is any way to deactivate some elements for AMP Pages or for Child Themes. I use the Block Editor to bring some Shortcodes to the frontend and follow buttons.
Would be nice to get an "exluded" rule for that.
Best Kevin
Hi there,
you can use a filter to disable elements on amp pages if you're using the official amp plugin - see here:
https://generatepress.com/forums/topic/disable-elements-from-amp/#post-1317046
Hey David
Thank you. Didn`t find this when i searched before.
Best Kevin
You're welcome
Thank you