Square Wheels Posted November 4, 2021 Share Posted November 4, 2021 Is it possible to hide ads on mobile devices? Link to comment Share on other sites More sharing options...
Adriano Faria Posted November 4, 2021 Share Posted November 4, 2021 Add a div in your ad and use the following classes: ipsResponsive_hidePhone ipsResponsive_hideTablet ipsResponsive_showDesktop Square Wheels 1 Link to comment Share on other sites More sharing options...
DawPi Posted November 4, 2021 Share Posted November 4, 2021 Square Wheels 1 Link to comment Share on other sites More sharing options...
Square Wheels Posted December 16, 2023 Author Share Posted December 16, 2023 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> Link to comment Share on other sites More sharing options...
opentype Posted December 16, 2023 Share Posted December 16, 2023 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. Jim M 1 Link to comment Share on other sites More sharing options...
Square Wheels Posted December 16, 2023 Author Share Posted December 16, 2023 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? Link to comment Share on other sites More sharing options...
Jim M Posted December 16, 2023 Share Posted December 16, 2023 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. Square Wheels 1 Link to comment Share on other sites More sharing options...
rastafari Posted December 17, 2023 Share Posted December 17, 2023 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 Link to comment Share on other sites More sharing options...
teraßyte Posted December 17, 2023 Share Posted December 17, 2023 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. rastafari 1 Link to comment Share on other sites More sharing options...
Recommended Posts