#207 – Preventing shortcode from loading

Posted in ‘weeblrAMP’
This is a public ticket. Everybody will be able to see its contents. Only enter usernames, passwords or any other sensitive information in the Private information field.
Wednesday, 22 April 2020 13:39 UTC
Andy K
 I am using Smart Slider to create a slider on my home page. It is loaded using the following short code, [smartslider3 slider=2]. However, this slider uses custom JS which is not allowed on AMP pages. Is there a CSS command I can use to prevent this short code from being executed on the AMP version of my home page?
 
Wednesday, 22 April 2020 13:48 UTC
wb_weeblrpress
Hi Andy,

You should wrap it inside weeblrAMP "Hide/show" tags as described on this page of the Advanced Customization section of the documentation.

That way you can have some content only on the AMP version or only on the regular HTML version. You could for instance hardcode an AMP carousel instead of your slider.

Best regards
 
Thursday, 23 April 2020 15:43 UTC
Andy K
Success! Thanks.
 
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.