Support » Fixing WordPress » Omit Widget on Mobile?

  • I am using a widget that I want to NOT appear on mobile platforms. It just doesn’t look right on phones. Is this possible?

    Thanks in advance

Viewing 5 replies - 1 through 5 (of 5 total)
  • It’s possible.

    A link to your site, and knowledge of which widget you’d like to hide would help.

    We can hide it using a media query in your css, not very difficult at all.

    We just need to know what css selector to target.

    Thread Starter officethug

    (@officethug)

    Here is the site: http://www.retailcurrencysolutions.net/site/

    The plugin is called Slick Contact Forms. It generates the CONTACT tab that’s stuck to the left side of the browser.

    Alright… yer themes a bit complicated but… wherever you enter custom css (I see some custom css options in your theme being output – I’m not sure if you add to a stylesheet, or have an option to add css or what), or directly in style.css you can add

    @media (max-width: 450px) {
    	.dc-contact-slick {
    		display: none;
    	}
    }

    the 450px is variable – you can adjust that to target the right size screen 650…450… whatev

    I believe that .dc-contact-slick is the right selector….

    basically when we get to a breakpoint you set above (450 currently) at that size or smaller, that element gets hidden

    Thread Starter officethug

    (@officethug)

    This is working in browsers but not on my iphone. I’ll try to experiment with it.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Omit Widget on Mobile?’ is closed to new replies.