Jump to content

Featured Replies

Posted

Is it possible to hide ads on mobile devices?

Add a div in your ad and use the following classes:

  • ipsResponsive_hidePhone
  • ipsResponsive_hideTablet
  • ipsResponsive_showDesktop
  • 2 years later...
  • Author

Do these still work?

I tried adding this in the Footer HTML of the Header and Footer section of the theme, but it still shows on my phone.  I'd really like to hide this as it's a chat icon and it's rather intrusive on my phone.

<div class='ipsResponsive_hidePhone ipsResponsive_hideTablet'>
<script>stuff here for the chat service</script>
</div>

 

5 minutes ago, Square Wheels said:

Do these still work?

Yes. But it’s meant to hide regular HTML output, not stop scripts from running. 

  • Author
Just now, opentype said:

Yes. But it’s meant to hide regular HTML output, not stop scripts from running. 

Hmm, do you know if there's another way to stop the script from running?

8 minutes ago, Square Wheels said:

Hmm, do you know if there's another way to stop the script from running?

You would want to contact your advertising provider. There's nothing in the software directly so it would require customization.

23 hours ago, Square Wheels said:

Do these still work?

I tried adding this in the Footer HTML of the Header and Footer section of the theme, but it still shows on my phone.  I'd really like to hide this as it's a chat icon and it's rather intrusive on my phone.

<div class='ipsResponsive_hidePhone ipsResponsive_hideTablet'>
<script>stuff here for the chat service</script>
</div>

 

 

Give it a try with  ipsResponsive_showDesktop

1 hour ago, rastafari said:

Give it a try with  ipsResponsive_showDesktop

Nothing will change. The CSS only hides the HTML content, but the <script> in this case will still be executed on page load regardless.

Recently Browsing 0

  • No registered users viewing this page.