I am using a AMP plugin which integrated in the themes named Newspaper,
but this AMP plugin do not support in keeping user browsing on AMP version users navigate to other articles. Can any body help? I find the function is_amp_endpoint() but I dont know how to use it in the case?
AMP Sidebar can help you, i.e. https://amp.dev/documentation/components/amp-sidebar/
Example: https://gist.github.com/debabratakarfa/bbeb4d5c681290078def38e07b9af2b0
Related
We are facing one issue with the AMP pages coming from Google Search Result in mobile. Google removed <amp-analytics> automatically from the website page and Google Analytics is not able to track the clicks.
Our website is Sportswhy
Original AMP page - https://sportswhy.com/amp/
AMP page from Google search - https://www.google.com/amp/s/sportswhy.com/amp/
We are using Astra theme on wordpress with ampforwp plugin for AMP support. Thanks in advance.
I don't know about the AMPforWP plugin but I do know that if you're using the official AMP plugin then it strips out any duplicate or invalid amp-analytics markup. That is to say if you've inserted any amp-analytics markup or script requests within your theme it's possible they may have been removed by the plugin if there were syntax or placement errors.
I have a drupal website with amp module.
How i can make to switch 2 different menu, one for AMP version and one for normal version?
I'm trying to put this expression: /*?amp but dosent work
/*?amp just give you the view of the AMP page of the current node if it exists.
I would suggest you to use AMP module. Which will also add required library and theme needed for it.
Now you can create a sub theme for AMP having AMP Theme as a base theme of it.
now just you have to create a Specific AMP menu and placed it to the region defined under your custom theme and visiting on AMP page you will able to see your AMP specific menu.
Please let me know if you need more information related to it.
I need to use AMP technology with specific pages in my Drupal website.
I know that I can use AMP module("AMP can be enabled for any node type. At that point, AMP content becomes available on URLs such as ?amp").
But I can't understand what i should do. Should I use two themes, first for AMP pages and second for non amp, or i need only one theme, that would work for all pages(amp and not amp)? Or I can use my non-AMP theme and just add AMP module for some nodes?
I would like to save my theme and just change some nodes to amp
There is an AMP theme that goes with the AMP module: https://www.drupal.org/project/amptheme. just install and enable (does not need to be the default theme). The AMP module does the switching for you.
Checkout:
https://www.lullabot.com/articles/how-to-try-out-amp-with-drupal
Yes, there is an Amptheme available which goes with AMP module as #stevegmag said https://www.drupal.org/project/amptheme. Also, you can create your own custom theme for AMP pages and give that the same look and feel as you have for non-amp pages.
I have been asked to advise on a gallery on their Old site and recreate it in WordPress. I dont know what gallery plugin they used, but do you know where I can find a tutorial or another plugin that looks identical to it? Any suggestions will help.
Thanks,
Josh
Yup Sure You can search a gallery plugin at the site Wordpress plugin here is one plugin as per you need fro your site.
This site has some handmade effects. I uses the Fisheye plugin and the jQuery Lightbox module ubt it also use them manually. If you inspect the source of the page you will find out the functionality.
I've started seeing on wordpress theme sites with the ability to preview a theme on the same page, I've tried searching for the plugin but I can't find any - I'm assuming its an iframe but I could be mistaken. Has anyone come across this before and whats the solution as I want to be able to create this for myself?
many thanks
Check out the Theme Test Drive plugin.
Once activated, you should be able to combine the preview URLs (http://www.myblog.com/?theme=Default) with iframes and/or whatever lightbox solution you prefer.