[Resolved] can logo be same line as navigation and right aligned button?

Home Forums Support [Resolved] can logo be same line as navigation and right aligned button?

Home Forums Support can logo be same line as navigation and right aligned button?

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #314869
    sdanbu

    Logos are usually seen above the nav in GP and wordpress.
    Is there a way for logo to be in the same line as nav?

    Also is there a way to insert a button that is same line as nav but right aligned?
    (Is there a recommended button plugin with GP?)

    Thank you

    #314870
    Leo
    Staff
    Customer Support

    Hi Scott,

    You can set the navigation location to float right then it should be inline with the logo:
    https://docs.generatepress.com/article/navigation-location/

    If you actually want the navigation next to the logo like the example link then set it to float right plus this CSS:
    https://generatepress.com/forums/topic/menu-next-to-logo/#post-241435

    As for the button, you could try adding it into the navigation and just style it with some CSS. More info here:
    https://docs.generatepress.com/article/adding-buttons/

    #314892
    sdanbu

    I tried inserting this CSS in the simple CSS area

    .button.ghost,
    .button.ghost:visited {
    background: transparent;
    border: 2px solid #FFF;
    }

    .button.ghost:hover,
    .button.ghost:active {
    background: #FFFFFF;
    color: #222222;
    border: 2px solid transparent;
    }

    Then I tried inserting this HTML in the header content area (with the right link and text)
    <a class=”button ghost”
    href=”LINK”>Your button text

    The button didn’t work. It appears but it nothing happens when I hover over it and when I click it.
    Did I call the button wrong?
    Was I supposed to put the button html in a different area?

    Thanks

    #314973
    Leo
    Staff
    Customer Support

    Hmm that should be right as long as you close the a tag with </a>

    Let me know.

    #315021
    sdanbu

    Yes I did that but it didn’t work for some reason.
    I appreciate your help though.

    #315450
    Leo
    Staff
    Customer Support

    Where are you inserting the HTML?

    Can you either provide the full code here or provide link to your site again?

    #315500
    sdanbu

    I inserted it into Page header content and Section

    The button in Section works like a button and behaves like a button

    The button in Page header content looks like a button but does not behave like a button

    Your button text`

    .button.sun-flower,
    .button.sun-flower:visited {
    	background: #F1C40F;
    	color:#FFF;
    }
    
    .button.ghost,
    .button.ghost:visited {
        background: transparent;
        border: 2px solid #FFF;
    }
    
    .button.ghost:hover,
    .button.ghost:active {
        background: #FFFFFF;
        color: #222222;
        border: 2px solid transparent;
    }
    #315508
    Tom
    Lead Developer
    Lead Developer

    You need to add the classes to the button.

    You have: <a href="http://">Your button text</a>

    It should be: <a class="button ghost" href="http://">Your button text</a>

    #315544
    sdanbu

    Thanks!

    #315668
    Tom
    Lead Developer
    Lead Developer

    No problem! 🙂

    #318972
    sdanbu

    Hmm… it’s not working again…

    Even links aren’t working in the header content area.

    I used the right syntax because the buttons work when they are in the section areas but not in the header content area.

    #319042
    Tom
    Lead Developer
    Lead Developer

    URL to the page?

    #320190
    sdanbu

    Ok I figured out that the button doesn’t work when I include this CSS

    .page-header-content:before {
    content: “”;
    width: 100%;
    height: 100%;
    background-image: url(url removed for forum)
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: center bottom;
    position: absolute;
    }

    This was used in another CSS solution

    #320253
    Tom
    Lead Developer
    Lead Developer

    Add this CSS:

    .inside-page-header-container {
        position: relative;
        z-index: 999;
    }
    #320257
    sdanbu

    Thank you!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!11

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