WordPress.org

Ready to get started?Download WordPress

Forums

if for mobile (3 posts)

  1. leonels
    Member
    Posted 2 years ago #

    I'm using theme Twenty Eleven. I'm modifying it for a client.

    There is an element in the header that I would like to hide if the visitor is viewing the Website with a mobile device. The element is an image, and it's big, and it needs to be hidden. How can I do that?

    Something similar to "if (theme == mobile)".

    Thanks!

  2. NateJacobs
    Member
    Posted 2 years ago #

    You will want to take a look at css media-queries.

    http://webdesignerwall.com/tutorials/css3-media-queries

  3. leonels
    Member
    Posted 2 years ago #

    Awesome, problem solved. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic