[Support request] Restrict Sections from showing in Mobile View

Home Forums Support [Support request] Restrict Sections from showing in Mobile View

Home Forums Support Restrict Sections from showing in Mobile View

  • This topic has 1 reply, 2 voices, and was last updated 3 years ago by Tom.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #564916
    Jamie Garringer

    I have been using WP Mobile Detect to restrict items from showing on certain views (not on phone, tablet for example). I would like a better option. I’m not the best coder, so could someone help me with this? Basically, I would like to restrict one section from view on phone. Or have help with restricting an image.
    I promise to buy a coffee for help with this…it’s been bugging me forever and I’m tired of trying to figure it out on my own.

    GeneratePress 2.0.2
    #565103
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    You can give items this class to hide them on mobile: hide-on-mobile

    So if you have an image: <img src="YOUR IMAGE URL" class="hide-on-mobile" />

    Or a div: <div class="my-div hide-on-mobile">My text</div>

    Let me know if you need more info 🙂

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.