Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #895058
    Alex
    Participant

    Hello,

    how can I change the size of the logo when it changes to mobile view.
    Or can I even change the whole logo-image?

    Thank you very much for your help!

    Regards,
    Alex

    #895060
    Alex
    Participant
    This reply has been marked as private.
    #896105
    Rad
    Moderator

    Hi there,

    Thanks for posting in.

    That’s possible, please add this CSS to Admin > Appearance > Customizer > Custom > Global CSS with your preferred size.

    @media ( max-width: 767px ) {
    
    .x-brand.img {
    width: 60%;
    }
    
    .x-brand.img img {
    width: 100%;
    }
    
    }

    Cheers!

    #897233
    Alex
    Participant

    Thank you very much!
    It worked! 🙂

    Cheers!

    #898018
    Lely
    Moderator

    You’re welcome!

    Always,
    X

    #898337
    Alex
    Participant

    Hello,

    is there any possibility to change the image when it goes to mobile view.

    Thanks!

    Regards,
    Alex

    #898853
    Thai
    Moderator

    Hi Alex,

    Please add the following CSS:

    @media (max-width: 979px){
        .x-brand.img img {
            opacity: 0
        }
        .x-brand.img {
            background: url(http://traube-bellenberg.de/wp-content/uploads/2016/04/traube-logo.png) no-repeat center center;
            background-size: 100% 100%;
        }
    }

    Then replace http://traube-bellenberg.de/wp-content/uploads/2016/04/traube-logo.png with your logo for the mobile version.

    Hope it helps 🙂

    #899248
    Alex
    Participant

    It worked!
    Thanks,

    But now I must decrease the header height.

    #899952
    Alex
    Participant

    I figured it out

    .x-navbar {
        height: 90px;
    }

    one more question:
    on small display sizes jumps the mobile menu button out of the navbar

    How can we fix that?

    #899953
    Alex
    Participant
    This reply has been marked as private.
    #900140
    Lely
    Moderator

    Hello There,

    Please adjust the following custom CSS:

    @media (max-width: 340px){
     .x-brand.img {
            background: url(/wp-content/uploads/2016/04/traube-logo-schmal.png) no-repeat 0px 10px;
            background-size: 100%;
        }
    	.x-brand {
    	width: 180px;
    	height: 80px;
    	}
    }

    To this:

    @media (max-width: 340px){
     .x-brand.img {
            background: url(/wp-content/uploads/2016/04/traube-logo-schmal.png) no-repeat 0px 10px;
            background-size: 100%;
        }
    	.x-brand {
    	width: 150px;
    	height: 80px;
    	}
    }

    There’s not enough space to display the logo and the menu button in one line. We have to reduce the logo’s width.

    Hope this helps.

    #900152
    Alex
    Participant

    Thx!

    #901453
    Rupok
    Member

    You are welcome!

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