Site logo

Archived topic

Primary Navigation Alignment left

7 replies · Started by Immi on October 5, 2018

Viewing posts 1–8 of 8

I'm not seeing the necessary CSS on the new site.

Try this:

.nav-float-right .inside-header .main-navigation {
    float: none;
    display: inline-block;
    vertical-align: middle;
}

.nav-float-right .header-widget {
    top: 0;
}

I put this code in simple CSS, but nothing happens I want to display on this site ** like this site header **

Hi there,

you have some broken CSS in your Simple CSS - ie this:

@media (max-width: 768px) {
    h1 {
        font-family: Helvetica, arial, sans-serif;
        font-size: 20px;
        font-weight: 600;
    }
    @media (max-width: 768px) {
        .grid-container.yoast-breadcrumb {
            font-size: 11px;
            color: #222;
            font-weight: normal;
        }
        @media (max-width: 768px) {
            .yoast-breadcrumb p {
                margin-bottom: 0;
            }
            .grid-container.yoast-breadcrumb {
                padding: 6px 3px;
            }
            @media (max-width: 768px) {
                .mobile-header-navigation .site-logo.mobile-header-logo im {
                    height: 58px;
                }
                .menu-toggle, .main-navigation .mobile-bar-items a {
                    line-height: 58px;
                }
            }
            .nav-float-right .inside-header .main-navigation {
                float: none;
                display: inline-block;
                vertical-align: middle;
            }
            .nav-float-right .header-widget {
                top: 0;
            }

remove that and replace it with this:

@media (max-width: 768px) {
    h1 {
        font-family: Helvetica, arial, sans-serif;
        font-size: 20px;
        font-weight: 600;
    }
    .grid-container.yoast-breadcrumb {
        font-size: 11px;
        color: #222;
        font-weight: normal;
    }
    .yoast-breadcrumb p {
        margin-bottom: 0;
    }
    .grid-container.yoast-breadcrumb {
        padding: 6px 3px;
    }
    .mobile-header-navigation .site-logo.mobile-header-logo im {
        height: 58px;
    }
    .menu-toggle, .main-navigation .mobile-bar-items a {
        line-height: 58px;
    }
}
.nav-float-right .inside-header .main-navigation {
    float: none;
    display: inline-block;
    vertical-align: middle;
}

.nav-float-right .header-widget {
    top: 0;
}

hello Sir,
It worked perfectly, thank you very much for your support. I have another question I’m using the Lightweight Social Icons plugin, and I want to display the social icon on the right corner top of a header. Same as shown in the attached picture below.

**

Try this:

.header-widget {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    overflow: visible;
}
.header-widget .widget_lsi_widget {
    position: relative;
    margin-left: 0.5em;
    top: -0.25em;
}

Thank You So Much, Sir

You're welcome

This archived topic is closed to new replies.