Activate AMP with WordPress

The Marfeel WordPress plugin seamlessly and effortlessly activates Marfeel-produced AMP pages at the click of a button. It essentially performs the same procedure that publishers not using WordPress must do manually; it inserts the necessary code in the <head> of articles to activate that content as Google AMP.

For publishers serving content over HTTPS, no CNAME or reverse proxy configuration is necessary. The Marfeel AMP plugin also maintains the same URL for legacy AMP articles enabled with other AMP plugins for WordPress. This means that all legacy articles will be updated to Marfeel-produced AMP pages with the same URL that resembles the following, promoting SEO:

http://example.com/article-path/amp

To activate Marfeel-produced AMP pages when using WordPress, complete the following steps:

  1. If using another plugin to activate AMP pages, deactivate it from your Plugins page. 
  2. Download the Marfeel Google AMP plugin for Wordpress.
  3. In the WordPress admin area, click Plugins in the left panel and then click Add New.
  4. Click Upload Plugin at the top of the page. 
  5. In the Add Plugins page, click the Choose File button and upload the Marfeel zip you downloaded. 
  6. Click Install Now.
  7. When the plugin has successfully been installed, click Return to Plugins page
  8. Click Activate in the Marfeel plugin row.

  9. There are the following two types of errors you might see when activating the plugin:

    1. If you see the following error, this means that there is an incompatibility with other plugins you might have activated like nextGEN Gallery. 

      To resolve this, deactivate the plugin causing the error, and ensure a CNAME is configured in the settings page as explained in steps 10 and 11. 
    2. If you see this error, it's because your domain can't be found in Marfeel's servers. 

      To resolve this issue, contact your Customer Success Executive or send an email to success@marfeel.com as instructed in the message itself. Your Customer Success Executive will then provide you with the correct domain (https://bc.marfeelcache.com/amp/ or https://b.marfeelcache.com/amp/) to be entered in the Domain field in the Marfeel plugin's settings page (accessed by following steps 10 and 11 below).
  10. To configure your AMP URL, click Settings in the left panel and select Marfeel.
  11. On the page displayed there are three options to configure your AMP URL:
    1. Pretty - this is the default option which maintains your legacy AMP URL if you used the AMP plugin for WordPress.
    2. Query Param - maintains an AMP URL with a query parameter as displayed in the example.
    3. CNAME - a custom AMP URL as you define according to the CNAME you set up. Setting up a CNAME on your DNS provider is mandatory for this option. For more information, see step 1 in the Activate AMP with Another CMS over HTTP article.
  12. Click Save Changes if you've modified any settings.

Deactivate Marfeel AMP pages in WordPress 

To disable Marfeel-produced AMP pages that were activated with the Marfeel WordPress plugin, publishers simply need to perform the following steps:

  1. Navigate to their Plugins page in WordPress.
  2. Click Deactivate under the Marfeel plugin.
  3. If the publisher re-implements the previous solution they were using for AMP pages, their AMP pages will have the same characteristics and features as before.