• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home » Google Accelerated Mobile Pages (AMP) and WordPress

By Abhishek Ghosh March 3, 2016 10:50 am Updated on March 3, 2016

Google Accelerated Mobile Pages (AMP) and WordPress

Advertisement

Google’s Guinea Pig Experiments with the Webmaster is Not New. Read this Guide for Coding Stuffs on Google Accelerated Mobile Pages (AMP) and WordPress. We are sure that, Google Accelerated Mobile Pages (AMP) will also die like Google Authorship experiments.

 

Google Accelerated Mobile Pages (AMP) and WordPress : Do or Not Do!

 

Accelerated Mobile Pages (AMP) will make all websites looking almost the same, according to their desire. It is not safe to test the currently used plugins on Nginx PHP5-FPM WordPress setup. Already spamming with Accelerated Mobile Pages (AMP) has been started. It is unlikely that this AMP will stay with time. Watch for near about 2 years and then use the tested plugins by the others. Google knows about this new spam, which peoples are joking as AMPlified spam :

Vim
1
https://googlewebmastercentral.blogspot.in/2015/10/an-update-on-how-we-tackle-hacked-spam.html

 

Google Accelerated Mobile Pages (AMP) and WordPress : Explaining the Idea

 

The idea is to use another sub page with same content with stripped off normal CSS, Js and use HTML markup, custom CSS and Js to show the content to the mobile, tablet users. It was better to ask for a common design for mobile version than trying an odd way. Take that the normal content URL is :

Advertisement

---

Vim
1
https://thecustomizewindows.com/2015/12/nginx-wordpress-installation-guide-steps/

AMP URL should be :

Vim
1
https://thecustomizewindows.com/2015/12/nginx-wordpress-installation-guide-steps/amp/

This is, not so easy with Nginx and PHP with WordPress Plugins. There are three main Plugins (all needed) for WordPress to do it –

Vim
1
2
3
https://wordpress.org/plugins/amp/
https://wordpress.org/plugins/pagefrog/
https://wordpress.org/plugins/glue-for-yoast-seo-amp/

However, they may deliver huge trouble to many users. If they work you may try. If does not work, use somewhat grey way of coding.

 

Google Accelerated Mobile Pages (AMP) and WordPress : Testing Micro-format with StudioPress Genesis

 

StudioPress Genesis developers has psychological issue, by default, they never use Article but CreativeWorks (Genesis 2.2.6). As for StudioPress Genesis, as we discussed before the minor editing of StudioPress Genesis theme (not child theme) for error with mainContentOfPage(at that time), you can check your markup for normal URL (without any /amp/) with Google’s Structured Data Testing Tool.

It is likely to get :

Vim
1
2
3
4
image: missing and required
publisher: missing and required
dateModified: missing and recommended
mainEntityOfPage: missing and recommended

mainEntityOfPage, dateModified recommended not required. So, we must add image and publisher.

If you hover over the error, you’ll see they are talking about AMP Article error. Which has referred here :

Vim
1
https://developers.google.com/structured-data/carousels/top-stories?

Also read it :

Vim
1
2
https://www.ampproject.org/docs/reference/spec.html
https://github.com/ampproject/amphtml/blob/master/spec/amp-tag-addendum.md

If Nginx plus PHP does the works in easy to revert way, why you’ll think so much? Basically AMP is nothing but mobile pages. If you add :

Vim
1
<link rel="amphtml" href="https://thecustomizewindows.com/2015/04/fix-wordpress-maincontentofpage-schema-error-genesis/" />

Google Accelerated Mobile Pages (AMP) and WordPress

That becomes first step to say – “this is also AMP page”. Previously we talked about JSON-LD, JSON-LD is the easiest way to add data but in this context, you need to edit either Genesis’s that PHP file or add filter. Otherwise it will become a separate stuff. Google wants kind of this :

Vim
1
2
3
4
5
6
7
8
9
10
    "publisher": {
      "@type": "Organization",
      "name": "The Customize Windows",
      "logo": {
        "@type": "ImageObject",
        "url": "https://thecustomizewindows.com/logo.jpg",
        "width": 600,
        "height": 60
      }
    }

The logo image should be 600×60 pixels. We talked before on how to Add Itemprop image Schema in WordPress Posts. With HTML5, it is pathetic work! Adding this to theme or child theme’s function.php or using our basic plugin to avoid adding snippets theme or child theme’s function.php :

Vim
1
2
3
4
5
6
7
8
add_filter('the_content', 'tcw_add_itemprop_image_markup', 2);
function tcw_add_itemprop_image_markup($content)
{
    $string = '<img';
    $replace = '<img itemprop="image"';
    $content = str_replace( $string, $replace, $content );
    return $content;
}

But, funnily it will return more error! Because the snippet will become :

Vim
1
<img itemprop="image" src="https://thecustomizewindows.com/wp-content/uploads/2016/02/List-of-Cheap-Dedicated-Server-Providers.png" alt="List of Cheap Dedicated Server Providers" width="699" height="707" class="aligncenter size-full wp-image-45258" srcset="https://thecustomizewindows.com/wp-content/uploads/2016/02/List-of-Cheap-Dedicated-Server-Providers-297x300.png 297w, https://thecustomizewindows.com/wp-content/uploads/2016/02/List-of-Cheap-Dedicated-Server-Providers.png 699w" sizes="(max-width: 699px) 100vw, 699px"/>

ImageObject, image.url, image.height, image.width are their beloved terminologies now.

Vim
1
2
3
4
5
6
7
8
add_filter('the_content', 'tcw_add_itemprop_image_markup', 2);
function tcw_add_itemprop_image_markup($content)
{
    $string = '<img';
    $replace = '<img itemprop="ImageObject"';
    $content = str_replace( $string, $replace, $content );
    return $content;
}

It is error for AMP Rich Article. It is passing normal Articles Rich Snippets. The attribute item type has an invalid value is the error. That part we will correct in another article. That is fully new set of work. Otherwise web search will get confused.

Tagged With Accelerated Mobile Page , Accelerated mobile pages

This Article Has Been Shared 605 Times!

Facebook Twitter Pinterest
Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Orthopaedic Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Google Accelerated Mobile Pages (AMP) and WordPress

  • Making WordPress to Load Faster on Rackspace Cloud Sites

    Making WordPress to Load Faster on Rackspace Cloud Sites needs WP Super Cache,CDN Sync Tool, HyperDB, .htaccess tricks and tweaks to make buggy plugins working.

  • AdSense Asynchronous Ads with Responsive Design

    AdSense Asynchronous Ads with Responsive design is a quite difficult to manage or implement. Here are some ideas which might help you for HTML5 website.

  • Choosing WordPress and HTML Template for a Website

    Choosing WordPress and HTML Template for a Website is not really that easy that it might sound. This quite difficult as both has limitations of their own.

  • Google+ Embedded Posts : Easy Guide

    Google+ Embedded Posts, unlike Google+ Interactive Posts do not demand much technical knowledge or access to API. It is really simple to work with single post.

  • Post Specific Widget with Semantic Markup for WordPress

    Post specific widget with Semantic Markup for WordPress is a kind of template Plugin for more flexibility. You can create infobox like Wikipedia.

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

You can subscribe to our Free Once a Day, Regular Newsletter by clicking the subscribe button below.

Click To Subscribe

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (20K Followers)
  • Twitter (4.9k Followers)
  • Facebook (5.8k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.2k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Cloud Computing : Cybersecurity Tips for Small Business Owners January 20, 2021
  • Arduino : Independently Blink Multiple LED January 18, 2021
  • What is a Loosely Coupled System? January 17, 2021
  • How To Repack Installed Software on Debian/Ubuntu January 16, 2021
  • Components of Agile Software Development January 15, 2021

 

About This Article

Cite this article as: Abhishek Ghosh, "Google Accelerated Mobile Pages (AMP) and WordPress," in The Customize Windows, March 3, 2016, January 20, 2021, https://thecustomizewindows.com/2016/03/google-accelerated-mobile-pages-amp-and-wordpress/.

Source:The Customize Windows, JiMA.in

 

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Cookie Policy.

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2021 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy