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