This topic has 7 replies, 3 voices, and was last updated 8 years by Laura.

  • Author
  • #89840
     groubee
    Participant

    Hi

    How can I change the Gravity Forms button style,

    see https://www.dropbox.com/s/kf64i0ahxd69iq2/how-to-change-button-style.jpg?dl=0

    or here in the right widget: http://www.skisme.dk/lejligheder/

    I world like to change the Gravity Forms button style to the theme style, like here:

    https://www.dropbox.com/s/jbmkzbelkplydzb/like-this-button.jpg?dl=0

    I hope you can help me?

    best regards

    Tonny

     

    #89908
     Laura
    Moderator

    Hello, try by adding this to style.css

    COPY CODE
    
    .gform_wrapper .gform_footer input.button, .gform_wrapper .gform_footer input[type=submit] {
        background-color: #00B9F7;
        border: none;
        padding: 10px;
        border-radius: 60px;
    }
    

    Let me know if it helps 🙂

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #90002
     groubee
    Participant

    Thanks – it works great! can I add hover?

    #90196
     Laura
    Moderator

    Hello, yes, add this 🙂

    COPY CODE
    
    .gform_wrapper input[type=submit]:hover {
        background-color: rgba(0,185,247, 0.7);
        transition: all .3s ease-in-out 0s;
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #90277
     groubee
    Participant

    Thanks a lot @Laura it works great!!

    #90478
     bassfan
    Participant

    For any others that are looking at this, I used this GF filter to make my buttons one of the buttons included in the kleo theme. You can change the “class” to be any of their buttons.

    COPY CODE
    add_filter( 'gform_submit_button', 'gform_submit_button', 10, 2 );
    function gform_submit_button( $button, $form ) {
    	$button = sprintf(
    		'<input type="submit" class="btn btn-primary btn-lg" id="gform_submit_button_%d" value="%s">',
    		absint( $form['id'] ),
    		esc_attr( $form['button']['text'] )
    	);
    
    	return $button;
    }
    #90880
     groubee
    Participant

    Nice!! thanks a lot @bassfan

    #91129
     Laura
    Moderator

    Awesome @bassfan thanks you for sharing it 🙂

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

Viewing 8 posts - 1 through 8 (of 8 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?