Ad

How To Center This Logo On A Shopify Theme?

- 1 answer

Working on this site at the moment (https://www.wilsonluxe.com/) - I wanted to put the logo in the middle with the navigation on the left, and potentially the search bar on the right if possible?

I wanted the navigation to be similar to this: https://dealsweel.com/

Any help would be appreciated

I've tried using the Shopify theme liquid but its organised a little differently than vanilla CSS, which is what I'm used to!

Ad

Answer

You can do it with display: flex; Try this:

@media screen and (min-width: 769px){
    .site-header .grid, .site-header .grid--rev, .site-header .grid--full {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: center;
    }
    .site-header .grid>.grid__item, .site-header .grid--rev>.grid__item, .site-header .grid--full>.grid__item {
        /* float: none; */
        /* display: table-cell; */
        /* vertical-align: middle; */
        width: 60%;
    }
}

.grid__item.post-large--one-third.post-large--display-table-cell { order: 2; }

.grid__item.post-large--two-thirds.post-large--display-table-cell.medium-down--hide {
    width: 40%;
    display: flex;
    order: 1;
}

This is the result: enter image description here

Ad
source: stackoverflow.com
Ad