[Resolved] How to add button in widget

Home Forums Support [Resolved] How to add button in widget

Home Forums Support How to add button in widget

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1445163
    Feber

    Hi there,
    Need your help.

    I want to create a button in footer’s widget like this https://prnt.sc/ui2ueh

    Please your advice.

    Thank you

    #1445327
    David
    Staff
    Customer Support

    Hi there,

    you can use a HTML widget to add those type of buttons.

    This document here provides the HTML and CSS to create your own button styles:

    https://docs.generatepress.com/article/adding-buttons/

    #1445384
    Feber

    Hi thanks for your reply,

    It works for me. But I need one more help about how to create equal size for all button I use in my widget ?

    Thank you

    #1445403
    David
    Staff
    Customer Support

    Using the example in the document i provided you can give it a min width eg.

    .button.sun-flower,
    .button.sun-flower:visited {
        background: #F1C40F;
        color: #FFF;
        min-width: 200px;
        text-align: center;
    }
    #1445568
    Feber

    Wow it works for me.

    Thank you very much David.

    #1445570
    David
    Staff
    Customer Support

    Glad to be of help.

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