html formatting when blog accessed through twitter

  • Unknown's avatar

    I use div and span on html to write footnotes on my blogs, for example,

    *On Microsoft Outlook, you can press Backspace while an email is highlighted to archive that email.

    These show up great whenever the blog is posted, regardless of device.

    However when a blog is accessed from a link on Twitter, twitter appends ‘amp/?_twitter_impression=true’ to the end of the WordPress link. As a result, the link directs the user not to my blog, but to a different page that has more generic formatting, instead of my chosen theme. There my footnotes look terrible. Help?

    The difference, as far as I can see, only shows up on mobile devices:
    https://needtoknowscience.wordpress.com/2018/08/21/tech-and-no-tech-tips-for-reaching-inbox-zero/amp/?_twitter_impression=true
    as opposed to

    Tech and No-tech Tips For Reaching Inbox ZERO

    The blog I need help with is: (visible only to logged in users)

  • What you are seeing when Twitter appends that to your page is an AMP page. AMP stands for accelerated mobile page. Twitter automatically points to these pages on mobile when the option is there.

    You can turn off AMP on your site under My Sites > Settings > Traffic under the heading Accelerated Mobile Pages (AMP).”

    You can read more about AMP pages at the link below as well:

    https://en.support.wordpress.com/amp-accelerated-mobile-pages/

  • Unknown's avatar

    Yup that did it! Except if I turn it off now the existing link from Twitter breaks… is there a way to redirect to the correct page? Or otherwise fix the existing tweet?

  • is there a way to redirect to the correct page? Or otherwise fix the existing tweet?

    This is a great question. I’m not sure of the answer, so I’m going to add a modlook tag in the sidebar so that a staff member can take a look and let us know for sure.

    While you wait for a staff reply you may try clearing your browser cache and trying the link again to see if that takes care of it.

  • Unknown's avatar

    Thanks! I tried the browser cache but that didn’t work. I think the problem is that the original tweet already has the amp added in so when one tries to access the site, there’s nothing for it to find.
    It seems to me that if a WordPress user turns AMP off, any links to AMP pages should redirect to the non-AMP page.

  • Hi there,

    Unfortunately there’s no way to automatically redirect existing AMP URLs to the regular version of the URL at this time if you disable AMP.

    So your options are either to disable AMP and live with broken links in the old tweets (keep in mind content on Twitter ages very quickly, and it’s unlikely many people will go dig up old tweets in your stream with all the new content constantly being posted there), or to keep AMP active in which case only those people who access your site via Twitter or Google searches on a mobile device will see those pages.

  • The topic ‘html formatting when blog accessed through twitter’ is closed to new replies.