Disable native iOS smart banner

I use the jQuery plugin for smart banner to display different applications depending on what part of the website is in android and iOS.

The problem is that Safari loads its own banner from the line:

<meta name="apple-itunes-app" content="app-id=xxxxxxxxxx">

So, I am showing 2 banners in Safari.

How to disable my own Safari banner or hide it using CSS? I tried to delete this line of code, but then both banners are not displayed.

Thank!

+4
source share
2 answers

To hide some component, you can simply use display:noneif you have the identifier of this second element

0

.

smartbanner.js, - , . Apple jQuery.

0

Source: https://habr.com/ru/post/1657372/


All Articles