Soledad Documentation
Configure AMP support and related options for Soledad-powered sites.
36 articles across 15 sections.
How to Set Up AMP for Your Site
From version 5.0, Soledad theme supports AMP for your site.
We've included Penci Soledad AMP plugin in download package from Themeforest ( All files and documentation download ).
If you want to use it, you can go to download page and download "All files and documentation" package. After that, extract this download package and open the folder. You can see plugin penci-soledad-amp.zip in the plugins folder
Please deactivate all other AMP plugins you have first. Because this plugin supports for you full AMP and other AMP plugins can caused conflict with our AMP plugin.
Let's install & activate this plugin. When you done, go to Appearance > Customizer AMP and custom your AMP
Note that: AMP pages doesn't supports display category mega menu, so, please go to Appearance > Menus > create a new menu for your AMP ( which don't use category mega menu ) > scroll down and check to "AMP Menu".
How to setup Google Adsense code for AMP?:
Note: If you don't use the Google Adsense on AMP or use Google Adsense Auto Ads on AMP - let's ignore the guide for ads below.
On AMP, you can't use google adsense codes like normal because AMP use the different way to display google adsense, so you need to modify the google adsense codes to use it the right way on AMP.
Normal Google Adsense codes will look like this:
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle center top-ad"
style="display:block"
data-ad-client="ca-pub-1234667890"
data-ad-slot="1234567890"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
You need to copy data-ad-client and data-ad-slot on the above codes:
ca-pub-1234667890 1234567890
And put it to data-ad-client and data-ad-slot of this google adsense codes for AMP - like this:
<amp-ad width="300" height="250"
type="adsense"
data-ad-client="ca-pub-1234567890"
data-ad-slot="1234567890"></amp-ad>
When you done, use the codes above and paste it to options for AMP google adsense via Appearance > Customizer AMP