Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1363226
    HubbubCA
    Participant

    Hello.

    I would like to remove the logo bar, or nav bar, or footer from one page only when viewed on phones only. Is there some CSS code I can add for each of those?

    Here is the page I’d like to do this on: http://hubbub.ca/newsundre

    Thanks do much!

    Cheers,

    Kevin

    #1363241
    HubbubCA
    Participant
    This reply has been marked as private.
    #1363415
    Jade
    Moderator

    Hi Kevin,

    Please add this code in the CSS customizer:

    @media (max-width: 767px) {
        .page-id-430 .masthead,
        .page-id-430 .x-colophon.bottom {
            display: none;
        }
    }

    Hope this helps.

    #1364325
    HubbubCA
    Participant

    Perfect! Thank you, Jade!

    That test page now renders exactly as I hoped on all screens 🙂

    After thinking about it, I adjusted your code slightly to leave the top logo bar on the page so I have a link back to the site’s homepage on phones:

    @media (max-width: 767px) {
    .page-id-430 .x-navbar,
    .page-id-430 .x-colophon.bottom {
    display: none;
    }
    }

    Many, many thanks again, Jade, for your supremely helpful and very quick response!

    Cheers,

    Kevin

    #1364468
    Rahul
    Moderator

    Glad we were able to help you.

    Let us know if we can help with anything else.

    Thank you.

  • <script> jQuery(function($){ $("#no-reply-1363226 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>