• 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 471 Times!

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, 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

Get new posts by email:

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 (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • What is Voice User Interface (VUI) January 31, 2023
  • Proxy Server: Design Pattern in Programming January 30, 2023
  • Cyberpunk Aesthetics: What’s in it Special January 27, 2023
  • How to Do Electrical Layout Plan for Adding Smart Switches January 26, 2023
  • What is a Data Mesh? January 25, 2023

About This Article

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

Source:The Customize Windows, JiMA.in

PC users can consult Corrine Chorney for Security.

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

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

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

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT