AMP posts – tips, technics and when to use TechzAround

AMP posts – tips, technics and when to use TechzAround

Last month we had very important fact – first time in history, mobile web had more unique visits that web. I guess, this trend will continue. This is why we want to keep this year for more advanced mobile support for all our products. And first major update is AMP advanced support.

AMP – is accelerated mobile pages technology which makes your mobile pages very fast. Don’t want to overload you many technical details, so, in simple words, AMP is like separate light version of your site special for mobile gadgets. You can find much more details about AMP here

There are many cases, when AMP will be bad sollution for your site. AMP has another ways to use scripts and styles, media, so, if you have too much important dynamic functions on page, AMP will be not your choice. If you have something important inside sidebar – you should also know that AMP doesn’t load sidebar at all. Sometimes you can solve this with adding any button in head of article, something like “Rate and compare here” which will redirect user to default web page.

If you decided to use AMP, here our article how to use it in our themes.

First of all, you need to install default AMP official plugin for wordpress. Go to Plugins – Add new and search plugin AMP, install and activate plugin

You have two further ways: use default theme options for advanced setup or use supported plugin Accelerated Mobile Pages (also free)

There are some pros and cons of each way. Using default theme option will give you maximum freedom for using advanced technics, and AMP modules (check below for some common examples). Using additional plugin is more easy for setup, but you will be limited by plugin’s modules, also, additional plugin is more load on site and can have more bugs. You can try both ways anc choose best for you, I will describe settings for both ways.

Styling and fonts

Theme has some advanced ready styles for next parts: Content Egg and Affiliate Egg output, buttons, boxes shortcode, review block, title boxes, table of contents list, highlights, pros and cons block, user reviews, post offer section. You can add also own custom styles for AMP in Theme option – Mobile & AMP – Custom styles. You can also add there Logo for AMP version (if you use Accelerated Mobile Pages plugin, add logo in AMP – General). You can also set color for header in Appearance – AMP. Don’t forget to set your site icon if you didn’t have it in Customizer – Site Identity

I don’t recommend you to use Black design scheme in settings as it doesn’t fit for content blocks


To make pages more fast, AMP version doesn’t have custom fonts as on web version. AMP plugin adds custom font Merriweather. To remove this font and add your custom font, do next steps:

  1. Disable default font in Theme option – Mobile & AMP
  2. Add link on any custom font in Theme option – Mobile & AMP – Header section. AMP supports only Google Fonts,, Font Awesome, I recommend to use Google fonts Just choose font and copy it’s link. Example.

Also, you need to overwrite default styles. To overwrite default body fonts, add next code to Theme option – Mobile & AMP – Custom css

where Arsenal is name of font. To overwrite headings, buttons, use code

Fallback link to web version

By default, AMP version will show number of comments, likes, review, but user can’t make any dynamic actions on AMP pages, so, it’s better to show him additional button to web version where he can do any actions with article. Usually, I use next code in section Theme option – Mobile and AMP – Before content

this code will show special button under title before content

Instead “white” class, you can use green, gold, brown, black, teal, blue, orange, purple, rose

Instead of “medium” class, you can use big, small to make button more big or small

Analytics ans statistic

As I wrote early, AMP is like separate mobile application of your site, so, all scripts from main site will not work on AMP. Also, AMP technology requires different way to add any scripts on page, including analytics code. You can find examples of add analytics code here

If you use additional recommended plugin, you can add Analytics in AMP – Gettings started – General

If you want to add manually, you can add next code

inside Theme option – Mobile and AMP – Header section

and next code to Theme option – Mobile and AMP – Footer section

replace Your_Analytics_ID to your ID. This is most simple settings for Analytics which tracks page views, you can check docs and find many different examples for setting different triggers.

Ads blocks on AMP

Ads on AMP has also another way to integration. If you use Accelerated Mobile Pages plugin, you can add ads blocks in AMP – Gettings started – Advertisement

You can also create your own ads blocks and insert them in one of sections in Theme option – Mobile & AMP. To do this, include first next code in Theme option – Mobile and AMP – Header section

Then, insert ads code in one of section in Theme option – Mobile & AMP. To see all available ads and examples, check this article about Ads on AMP. Example of Adsense code

Sticky ads

You can also add sticky ads with the same logic. Check this tutorial about sticky ads on AMP

Seo settings

Currently, theme supports Seo By Yoast plugin for AMP. Also, there are many other plugins which can add some basic seo settings for AMP, but we recommend to use Seo By Yoast

Social share button

We also added some share buttons. They are enabled by default. Facebook share requires app API key, you can set it in Theme option – Mobile & AMP. You need to register your FB application here

AMP for pages

I strongly recommend to disable pages for AMP support. This is because many plugins require some system pages and they will not work on AMP or make conflicts. Also, home page can have some post modules, which doesn’t have support for AMP. So, disable pages for AMP in AMP – General. Enable them only if you don’t have any custom pages with page builder and you have simple blog.

How to test AMP.

After all settings, it’s good to test your posts in AMP validator Just place link to your post and add in the end /amp. Example:


AMP posts – tips, technics and when to use

4.1 (81.25%)
16 votes

Leave a Reply

Your email address will not be published. Required fields are marked *

How to copy shortcodes and code snippets properly in wordpress TechzAround

How to copy shortcodes and code snippets properly in wordpress TechzAround

How to know what error do you have on wordpress site TechzAround

How to know what error do you have on wordpress site TechzAround