Detect AMP, Edit Default reader template
-
In Transitional mode a lot of my theme’s functionality doesn’t seem to work, including the drop-down menu and other things.
I tried reader mode and it seems to look ok for my purposes. I only need amp for the SEO benefits.
In reader mode some of my plugins(shortcodes) still are not working because they depend on JS, example my slider plugin(Master Slider), so I want to create some fallbacks, other than checking the URL for the ?amp query in PHP, is there a special constant or function I can use to know if the user is currently viewing the amp version of a post?
—
The other question I have is how do I go about editing the default reader template? By Edit I mean maybe duplicate it and change some things about it such as the color of the top bar and some standard formating things
The topic ‘Detect AMP, Edit Default reader template’ is closed to new replies.