• Mattw1000

    (@mattw1000)


    Hi,

    I would like to make all of my blog posts automatically use AMP Swift theme on desktop too instead of my WP theme, therefore also making them AMP.

    I saw your new feature for AMP take over but don’t want ALL of my pages to also go to AMP, just my blog posts.

    Is there a way to do this please? if for example i already have certain pages set to NOT create an AMP page will that stop the AMP takeover working on those pages please?

    thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • frenchomatic

    (@frenchomatic)

    Why would you want to do this? Google decides if it is going to show an AMP page or not. Invariably on mobile it will if it exists. Trying to override them on desktop may or may not be a good idea. There are several ways you could do it

    1. A simple 301 redirect in htaccess. Google and the visitor will get redirected to the AMP version whatever.
    2. Preferably, write a small function in functions.php to append /amp/ on the end of post permalinks. Not sure but you may need to set up the canonical to the AMP version too. There is some documentation about that on the main AMP web site on only having an AMP web site and what tags are needed.

    Thread Starter Mattw1000

    (@mattw1000)

    Hey Frenchomatic

    I was thinking of doing this, as i currently use two different wordpress themes, 1 for my woocommerce store and 1 for my blog posts (i wanted a more magazine style for blog posts). I do this using a multiple themes plug in.

    It’s a bit clunky though, and i thought seeing as i have AMP installed anyway, and it’s super fast to load on desktop, plus AMP swift theme now looks pretty good on desktop, why not just use that for my blog posts on both mobile and desktop, offering my readers a much faster page load on desktop too. I’m not really doing it for google.

    so i have been thinking i might use the AMP takeover option and then use my plug in organiser plug in, to just switch the AMP plug in off for all the pages i dont want the take over to happen. BUT i’m not sure if i misunderstand what the AMP take over is. Whether it will change the design of all my blog posts to the Swift them or not.

    i did try a redirect with one of my posts to the /amp/ version but for some reason it looped and lead to a 301 for too many redirects.

    Any ideas where i might find a function code to try your second option please?

    thanks!

    p.s it also enables me to switch off a bunch of plug ins, like my multiple theme plug in, my Ad rotate (as i can just use AMP to show ad’s) along with a couple more plug ins that WP theme uses, which in turn optimises my site further.

    so i guess to answer your first question, i think it will help me simplify my sites back end and help optimise

    • This reply was modified 7 years ago by Mattw1000.
    frenchomatic

    (@frenchomatic)

    Firstly if your site is well optimized using W3 total cache and a CDN like cloudflare, then AMP is not going to be particularly faster on a desktop. I have found sometimes it is slower. The advantage of AMP comes when you have really poor optimisation in terms of speed or the AMP page is being served directly from the google cache in the SERPS. In other words, presenting an AMP page on a desktop to somebody shouldn’t really be any faster and unlikely to give any real advantage. This would change of course if google started serving AMP pages directly from its cache on desktop searches. That would tip the balance.

    I don’t have any specific code but you should be able to find examples of functions where people want to changethe urls for posts only.

    khen888

    (@khen888)

    thanks for your ideas here frenchomatic. Keep it up!

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Hi @mattw1000

    Thank you for the explanation, I will create a ticket for this and make sure that this gets implemented properly.

    Here’s the ticket for reference: https://github.com/ahmedkaludi/accelerated-mobile-pages/issues/1807

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘AMP take over for Posts only’ is closed to new replies.