Okay
  Public Ticket #691696
Center Logo on Mobile
Closed

Comments

  • Robert started the conversation

    How do I center my logo on mobile devices. I can center it through the "Salient" menu under layout and I'm using "Centered Menu Alt" setting. Looks great on desktop but does not center on mobile.

    Thanks for your help!

  •  8,884
    Tahir replied

    Hey ,

    Add this into the Custom CSS box located in your Salient Options panel (Make Sure there are no red cross in the Box) :

    body #header-outer[data-format="centered-menu-under-logo"] header#top #logo img {
        display: table !important;
        margin: auto !important;
        left: 7.5% !important;
    }
    
    

    Bes.t


    ThemeNectar Support Team 

  •  21
    Simon replied

    Hi Tahir

    This css doesn't work - is there an updated piece of code since the latest theme update?

    Thanks, Si

  •  8,884
    Tahir replied

    @Simon,

    Please provide the page url so that i can write up the custom css for whats possible.

    Thanks


    ThemeNectar Support Team 

  •  21
    Simon replied

    http://landing.medicalchannel.com.au

    Just looking to centre the logo on mobile. It's a landing page so we have no navigation.

    Thanks, Si

  •  8,884
    Tahir replied

    Add this into the Custom CSS box located in your Salient Options panel (Make Sure there are no red cross in the Box) :

    @media only screen and (max-width: 1000px) and (min-width: 1px) {
        header#top .col.span_3 {
            left:50% !important
        }
    
        #header-outer[data-format="centered-logo-between-menu"] .span_3 #logo:not(.no-image) img {
            -ms-transform: translateX(-50%);
            transform: translateX(-50%);
            -webkit-transform: translateX(-50%);
        }
    }

    Thanks


    ThemeNectar Support Team 

  • Alexander replied

    Hi! How can I center Logo in mobile version? http://www.tsausaki.com/

  •  8,884
    Tahir replied

    @Alexander,

    Add this into the Custom CSS box located in your Salient Options panel (All custom css provided is tested in the Live Browser so it will work as intended . If you cant see any changes make sure there is no red cross in the Custom CSS Box as that syntax error would cause all css below it to not show up on the Frontend):

    @media only screen and (max-width: 1000px) and (min-width: 1px) {
        header#top .col.span_3 {
            position: absolute;
            left: 50% !important;
        }
        #header-outer[data-format="centered-logo-between-menu"] .span_3 #logo:not(.no-image) img {
            -ms-transform: translateX(-50%) !important;
            transform: translateX(-50%) !important;
            -webkit-transform: translateX(-50%) !important;
        }
    }

    Thanks


    ThemeNectar Support Team 

  • Alexander replied

    Thank you! It works

  • EdgarCph replied

    Hi! 

    I managed to use this most recent code you published, it works, the logo is centralised on mobile version. But now the website is classified as "Not secure". Any help?

    Thanks!

  •  4
    Benny replied

    Hey EdgarCph!

    That error appears when you have a SSL certificate on your site, but you are linking to unsecure errors (using http:// instead of https:// in a URL).

    Have a look at this guide to help you resolve it: https://kinsta.com/blog/wordpress-mixed-content-warning/