This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Hiding SiteOrigin Image Widget in mobile

9 years ago · Last reply by Thomas Lemström 9 years ago

My intention is to hide a SiteOrigin Image Widget on mobile (i.e. narrow) displays. I’m using a theme called ‘Sydney’ by aThemes.

I’m trying to achieve this vie SiteOrigin Image widget >> Widget Styles >> Attributes.

There I’ve entered:
– ‘narrow’ as the Widget Class (without the inverted commas) and
– the following CSS Styles

margin-top: 2em;
@media (max-width: 400px) { .narrow { display: none; } }

However, the Image keeps showing up regardless of how narrow the screen is. What am I doing wrong?

Thank you!

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

4
  1. Alex S Staff 9 years, 10 months ago

    Hi Thomas,

    Do you have a public URL where we can take a look at what’s going on? If you need to keep this URL private from other users, just select “Private Reply” on the bottom right of the comment box.

  2. Thomas Lemström Private 9 years, 10 months ago

    This is a private message.

  3. Alex S Staff 9 years, 10 months ago

    Hi Thomas,

    Hm. Okay I see the issue. The issue is that you put the CSS into the styling field. That field applies the CSS specifically to where you put it – it acts as a container. In other words, it doesn’t accept selectors. I recommend installing SiteOrigin CSS Editor which will allow you to add CSS, like this, effortlessly.

  4. Thomas Lemström 9 years, 10 months ago

    Yes, it works. Thank you, very much!

Replies on this thread are closed.

Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Have a different question or issue?

Start New Thread