[Support request] Add extra button to header element

Home Forums Support [Support request] Add extra button to header element

Home Forums Support Add extra button to header element

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #2368698
    Renske

    Hi there,

    I want to add an extra button to my header element with a hoover effect. How do I do this? See my website in the private info.

    #2368954
    David
    Staff
    Customer Support

    Hi there,

    you can add another menu item with the nav-button class to make it look like a button.
    If you want that style to be different to the other button then give it a second class eg.

    nav-button button-two

    We can then use the second class to change the button styles.

    Let me know

    #2369672
    Renske

    Hi there, I mean the button on the header image (not the button in the navigation bar) πŸ™‚

    #2369773
    David
    Staff
    Customer Support

    Aah sorry about that πŸ™‚

    So you can do this:

    
    <a class="button hero" href="#aanbod">Bekijk mijn diensten</a>
    <a class="button hero two" href="#other-button">Another button</a>

    That will display the two buttons inline.
    You can add a little CSS to give them some space:

    
    .button.hero {
        margin-right: 10px;
    }
    #2373626
    Renske

    Hi David, thanks!

    To make things a little more complex (sorry ;-)) I want to make the second button less prominent. So the first one has to remain green and I want the second one to have a white background with green text and green border (no hoover effect). Ho do I do this? πŸ™‚

    #2373713
    David
    Staff
    Customer Support

    Ok, so change this CSS:

    
    a.hero.button {
        background-color: #78c16c;
        color: #fff;
    }

    to:

    
    a.hero.button {
        border: 3px solid #78c16c;
        background-color: #78c16c;
        color: #fff;
    }

    And add this CSS to style the second button:

    
    a.hero.button.two, a.hero.button.two:hover {
        background-color: #fff;
        color: #78c16c;
    }
    #2373734
    Renske

    Thanks David! I did tweak the CSS a little bit more and now the colors of the buttons are to my liking πŸ™‚

    #2373737
    David
    Staff
    Customer Support

    Glad to hear that !!

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