[Resolved] Primary navigation design

Home Forums Support [Resolved] Primary navigation design

Home Forums Support Primary navigation design

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #756839
    Mehmet Akif Kaban

    Hello
    I want to use primary navigation with my site logo. Everything seems ok until I upload the logo to primary navigation.when I upload the image the height of navigation bar increases out of control( you can see the increased amount when you get the cursor over the menu element)

    Also I don’t want the header. Is there a way to globally hide it ? What I do is remove top and bottom paddings to zero so that header is hidden. Is this the true way?

    Thanks

    #756852
    Leo
    Staff
    Customer Support

    Hi there,

    I believe this article should answer your questions:
    https://docs.generatepress.com/article/navigation-as-a-header/

    Let me know if this helps ๐Ÿ™‚

    #758283
    Mehmet Akif Kaban

    Thanks I disabled global headers but I still have the issue of out of control increment of the primary navigation bar. You can check my website

    #758285
    Leo
    Staff
    Customer Support

    Not sure what you mean by

    out of control increment of the primary navigation bar

    but maybe remove this CSS you’ve added?

    .site-logo {
        order: -1;
        margin-bottom: 10px;
    }
    #758288
    Mehmet Akif Kaban

    Thanks That solved my problem!

    But I am not sure if I added it? My customization adds those codes to there?

    #758302
    Leo
    Staff
    Customer Support

    That CSS isn’t added by default or any customizations through the customizer.

    Glad it’s solved ๐Ÿ™‚

    #758785
    Mehmet Akif Kaban

    Hello Leo,
    Thnks for the help
    When I look at css section I found lots of codes.
    Are these CSS added by me through customizer?

    /* GeneratePress Site CSS */ @media (min-width: 1025px) {
    .home-intro {
    margin: 10px 200px;
    }
    }

    .lsi-social-icons li a, .lsi-social-icons li a:hover {
    padding: 10px 5px 0px 5px !important;
    background: transparent !important;
    }

    .topbar {
    padding: 6px 0px 4px 0px;
    }


    @media
    ( max-width: 768px ) {
    #lsi_widget-2 {
    display: none;
    }
    }

    .main-navigation .menu > .menu-item > a::after {
    content: “”;
    position: absolute;
    right: 50;
    left: 50%;
    top: 0px;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    display: block;
    width: 0;
    height: 2px;
    background-color: currentColor;
    transition: 0.3s width ease;
    }

    .main-navigation .menu > .menu-item > a:hover::after,
    .main-navigation .menu > .menu-item > a:focus::after,
    .main-navigation .menu > .current-menu-item > a::after{
    width: 30px;
    }

    .main-navigation .main-nav ul li a, .menu-toggle, .main-navigation .mobile-bar-items a {
    text-align: center;
    }

    .main-navigation a {
    letter-spacing: 2px;
    }

    #generate-slideout-menu {
    padding-top: 20px;
    }

    .hero-title {
    font-size: 40px;
    letter-spacing: 4px;
    }


    @media
    (max-width: 768px) {
    .hero-title {
    font-size: 32px;
    letter-spacing: 2px;
    }
    }

    .mobile-header-navigation {
    padding: 8px 5px;
    }

    .menu-toggle {
    font-size: 20px;
    }

    h1 {
    letter-spacing: 2px;
    }

    input[type=”button”], input[type=”reset”], input[type=”submit”], a.button, a.button:visited {
    line-height: inherit;
    border-radius: 6px;
    transition: all 0.5s ease 0s;
    margin-top:10px;
    }

    h2.widget-title {
    letter-spacing: 2px;
    }

    .inside-footer-widgets {
    text-align: center;
    }

    .inside-page-hero .smooth-scroll {
    position: absolute;
    bottom: 20px;
    }

    .page-hero {
    position: relative;
    } /* End GeneratePress Site CSS */
    .inside-header {
    display: flex;
    flex-direction: column;
    }

    #758972
    David
    Staff
    Customer Support

    Hi there,

    that CSS would have been added when you installed a Site for the Site Library. They are part of the customisations the designer built in.

    #759418
    Mehmet Akif Kaban

    Thanks,
    That CSS affects my site now or no?

    #759520
    David
    Staff
    Customer Support

    Looks like you have made quite a few changes to the original Site Library. Easiest way to tell is to remove the CSS and see if you notice any changes. Paste it into a text editor for safe keeping inc case you need to add it back.

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.