Download

How to use <publii-amp> and <publii-non-amp> tags

Notice: Update Regarding AMP Functionality

We regret to inform you that the AMP functionality has been removed from our application starting with version 0.42.0 and will no longer be developed or supported. This article pertained to earlier versions of the application where the AMP feature was available. If you are using version 0.42.0 or later, please be aware that the information in this article is no longer applicable. We apologize for any inconvenience and encourage you to explore our other features that may add value to your experience.

These tags allow creating content visible only on AMP or only on the non-AMP version of your website. Just wrap content which you want to display only on your AMP version of the website using source code editor in your post:

<publii-amp>
This content will display in the AMP page
</publii-amp>

If you need to display some content only on normal website use:

<publii-non-amp>
This content will not display in the AMP page
</publii-non-amp>

Thanks to these tags you can, e.g., hide forms on AMP websites and display button to full version of the website instead of forms.

Additionally, both blocks will get a dedicated border with a label. With it, you can easily recognize them in your post contents.

What are you waiting for?

Start building your site today.

  1. 1 Download Publii
  2. 2 Write your content
  3. 3 Publish your site
Create website