Support » Fixing WordPress » Mobile CSS

  • Hi,

    I am struggling to find a way to remove images/text/editor off my site when it is viewed on mobile devices.

    Is there a simple way to do this? Would it be possible to just add CSS in to ‘Mobile CSS Styles’ for the specific widget?

    Thanks

Viewing 3 replies - 16 through 18 (of 18 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    There are 2 issues:

    • The CSS selector is missing (which points to either the class, ID or element name)
    • The “display: none” code is inside CSS comments which will be ignored by the browser

    This is an example of what your code should look like:

    
    @media screen and (max-width: 480px) {
       img {
            display: none;
       }
    }
    

    Sorry but it still doesn’t work..

    @jakefusion,

    Can you send let us know what you have written?
    Also, can you compare the class or id names in both CSS and HTML structure?

    Thank you

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘Mobile CSS’ is closed to new replies.