• Resolved carligeanu

    (@carligeanu)


    Hi. Awesome theme. I want to know how can i make my header image (color replaced) hide on mobile devices (low resolution) ?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi carligeanu. You would add a css media query to your child theme or custom css, and set it to the width of the viewport (screen) at which you want to hide the image. If you can post a link to your site I can work up a quick example for you.

    Thread Starter carligeanu

    (@carligeanu)

    Thank you bdbrown, here is my site Marturisim.ro , today i will stay without Coming Soon Mode for you.

    Hey there carligeanu,

    Hope you’re well today!

    Try adding the following CSS code in the style.css file of your child theme or add it in your site using the following plugin:

    http://wordpress.org/plugins/simple-custom-css

    @media only screen and (max-width: 719px){
    .topbar-enabled #header {
    background: #fff;
    }
    }

    This should replace the header image with the white color on lower resolutions. If you want another color simply replace the color hex value (#fff) to the one of your choice.

    Hope this helps 🙂

    Best regards,
    Bojan

    Thread Starter carligeanu

    (@carligeanu)

    Thanks, Bojan. It’s worked. It is nice with white space, but it would be more beautiful if i can eliminate this white space forever in mobile device.

    Hey again carligeanu,

    Please try to replace previous code with this one:

    @media only screen and (max-width: 719px){
    .topbar-enabled #header {
    background: #fff;
    margin-bottom: -60px
    }
    }

    Hope this helps 🙂

    Cheers,
    Bojan

    Thread Starter carligeanu

    (@carligeanu)

    Thank you Bojan, you helped me a lot. I hope you can help me with other problems in another topic. Closed topic.

    Cheers,
    Carligeanu

    Thread Starter carligeanu

    (@carligeanu)

    note: with “;” after margin-bottom: -60px

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Hide header image in mobile device’ is closed to new replies.