AMP template

Posted in: Newspaper
Post count: 109

Hello!

I need to add code to the site’s AMP template. We have to load a business partner’s top bar in our AMP pages.

Can you help me locate and edit the AMP template for the site’s content?

Thanks!

  • This topic was modified 4 years by turma99.
Post count: 18283

Hello!

Do you use Mobile Theme plugin + AMP or just AMP ?

Thank you!

Post count: 109

Mobile Theme plugin + AMP

Thanks!

Post count: 18283

Hello!

That you can do by inserting your code in THeme panel – Mobile theme – Mobile ads: https://www.screencast.com/t/eMaEZDpry

Thank you!

Post count: 109

Hi, Vlad!

But the content is not an ad, is a top bar. What should we do?

1. At the end of style tag:
#r7header {
background-color: #0071bc;
display: block;
text-align: center;
width: 100%;
}

2. At the beggining of the body tag:

<amp-img src=”
https://sc.r7.com/amp/logo-r7-amp.jpg&#8221; width=”200″ height=”60″></amp-img>

Post count: 35449

Hi turma99, if I understand correctly, you have an image that you want to be set as top bar for your amp version. Now the easiest way it is to set it in one of the ads files like Vlad suggested or in this places https://i.imgur.com/zYxTAsO.png this is the only solution to set the code in theme settings, if this is not what you want, then you need to set it in theme files (please notice that when the theme will be updated those changes from theme files will be removed). The file path it is wp-content/plugins/td-composer/mobile/header-amp.php
Thank you!

Viewing 6 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic.