[Resolved] How to Add a Ghost Button?

Home Forums Support [Resolved] How to Add a Ghost Button?

Home Forums Support How to Add a Ghost Button?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1357216
    Downtown Spanish

    Hello.

    How do I add a transparent ghost button?

    This CSS is not working:

    .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;
    }

    #1357312
    Leo
    Staff
    Customer Support

    Hi there,

    You would need to make sure the HTML matches the suggested HTML here:
    https://docs.generatepress.com/article/adding-buttons/

    Or make sure to add button and ghost class to the button block you are adding.

    #1357315
    Downtown Spanish

    I am not familiar to HTML. How do I match or edit the HTML?

    When I add a button it doesn’t ask me what class I want so I don’t see where that ghost class you refer to is.

    #1357324
    Leo
    Staff
    Customer Support

    Would a plugin like GenerateBlocks work better for you?

    You can replicate that layout with container and buttons block much easier without any CSS.
    https://generateblocks.com/

    #1357327
    Downtown Spanish

    Definitely. Thank you for the recommendation, Leo!

    I will install it ASAP.

    #1357328
    Leo
    Staff
    Customer Support

    No problem 🙂

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