Amp version not showing shortcodes and acting weird

Posted in: Newspaper
Post count: 11

hello, the posts in the amp version are not showing the shortcode content + it s showing deleted content event after purging the cache, can you please help

https://tipstravelbook.com/2019/06/11/%D8%A7%D9%84%D8%BA%D8%B1%D8%AF%D9%82%D8%A9/?amp

https://tipstravelbook.com/2019/06/11/%D8%A7%D9%84%D8%BA%D8%B1%D8%AF%D9%82%D8%A9/

the shortcode : <script async=”” src=”//www.travelpayouts.com/blissey/scripts_ar.js?categories=5stars&id=6666&type=full&currency=usd&host=search.hotellook.com&marker=227691.&limit=5&powered_by=false” charset=”UTF-8″></script>

Post count: 20688

Hi,

I don’t quite understand the problem unfortunately. The post looks alright, it is also valid when checking – http://prntscr.com/o39yf2
I also don’t find any reference to the script you mention in the post. Some more details would be helpful.

Thanks

Post count: 11

Hello simion ,

yes you are right cause i have removed the code, now you can check the post in Mobile version and compair it with the AMP , there is a code placed at the end of the post ( list of hotels ) that is not showing in the AMP .

the other issue with Mobile version i just noticed , the search icon lay on the top of the menu icon ( mobile version ) how can I get rid of the search icon , or place it somewhere else?

this is the code ( <script async src=”//www.travelpayouts.com/blissey/scripts_en.js?categories=5stars&id=6666&type=compact&currency=rub&host=search.hotellook.com&marker=227691.&limit=10&powered_by=true” charset=”UTF-8″></script> )

Post count: 20688

Hi,

Maybe that widget is not compatible with AMP, you could check in the widget provider documentation if it supports AMP.

The icons display like that because of RTL, the design isn’t created for RTL unfortunately, so there will various issues. Try using a CSS code like this one to position the search icon to the left – http://prntscr.com/o3pf2c

.td-search-icon {
left:0;
right: auto;
}

Or you could remove it – http://prntscr.com/o3pfpl The code can be entered the code in the mobile theme custom CSS section.

Thanks

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.