Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: Possible to have a header for desktops AND mobile ?

Discussion in 'Misc WordPress Requests' started by madhavadasa, Oct 15, 2017.

  1. madhavadasa

    Guest

    Reply To: Possible to have a header for desktops AND mobile ?, by madhavadasa

    I got code from my theme developer that works great. Don’t know if it works for all themes (mine is Tempera).

    /* hide header on mobile */

    @media (max-width: 799px) {
    #bg_image { display: none; }
    }

    /* hide logo on desktop */

    @media (min-width: 800px) {
    body a#logo { display: none; }
    }
    @media (max-width: 799px) {
    body #branding #bg_image + #header-container { position: static; }
    a#logo { text-align: center; }
    }

    Reply To: Possible to have a header for desktops AND mobile ?
     
    #1

Share This Page

Web Hosting