Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1120078
    Simon T
    Participant

    Hey Guys,

    I’m trying to set my gravity forms to have two columns by adding CSS classes of gf_left_half and gf_right_half but the form is still displaying as one column.

    I asked the GF support team for advice and their response is below. Can someone please advise:

    “I’m afraid the issue with the CSS Ready Classes is being caused by the theme which is including it’s own custom Gravity Forms stylesheet which is overriding the default styles:

    http://77.104.142.77/~webstein/sportingedge.co.nz/wp-content/themes/x/framework/css/dist/site/gravity_forms/renew.css

    Gravity Forms 2.0 does include a lot of style changes so the theme developer would need to update their custom stylesheet so it is compatible with those changes.

    This rule inparticular is causing the layout issue with fields using the gf_left_half and gf_right_half classes:

    https://www.dropbox.com/s/x9amefiz867d5sc/Screenshot%202016-08-06%2011.34.37.png?dl=0

    They are setting the float rule to left, Gravity Forms no longer uses floats for the CSS Ready Classes as they are bad for responsive design.

    You’ll need to contact the theme developer to see if they have an updated version of the theme compatible with the new version of Gravity Forms”

    #1120080
    Simon T
    Participant
    This reply has been marked as private.
    #1120090
    Thai
    Moderator

    Hi There,

    You can override that CSS by adding the following CSS under Customizer > Custom > Global CSS:

    body .gform_wrapper .top_label li.gfield.gf_left_half, 
    body .gform_wrapper .top_label li.gfield.gf_right_half, 
    body .gform_wrapper .top_label li.gfield.gf_left_third, 
    body .gform_wrapper .top_label li.gfield.gf_middle_third, 
    body .gform_wrapper .top_label li.gfield.gf_right_third {
        float: none;
    }

    Hope it helps 🙂

    #1120103
    Simon T
    Participant

    Thank you Thai,

    How do I set the size of the input boxes to be all the same?

    #1120123
    Thai
    Moderator

    Hi There,

    Please add the following CSS:

    .gform_body .gform_fields .gfield .gfield_select {
        height: 53px !important;
        color: #000 !important;
    }

    Hope it helps 🙂

    #1131438
    Simon T
    Participant

    Hey guys, I have moved the website to clients hosting (www.sportingedge.co.nz) and the code below no longer works to make the fields the same size. Any idea why?

    .gform_body .gform_fields .gfield .gfield_select {
    height: 53px !important;
    color: #000 !important;
    }

    #1131441
    Christopher
    Moderator

    Hi there,

    I would like to check your site but it’s under construction mode, please provide us with login credentials.

    Thanks.

    #1131444
    Simon T
    Participant
    This reply has been marked as private.
    #1131452
    Christopher
    Moderator

    Please provide us with authentication credentials.

    Thanks.

    #1131457
    Simon T
    Participant

    Sorry I’m not sure what you mean?

    #1131468
    Christopher
    Moderator

    Please see the attachment.
    Thanks.

    #1131507
    Simon T
    Participant

    Please try again now?

    #1131513
    Christopher
    Moderator

    Still asks for authentication credentials.

    Thanks.

    #1131520
    Simon T
    Participant

    Hi Christopher, I have asked my host about this and they were unable to tell me why you are getting that message. Another support staff member Rupok seems to be getting into my website ok (on another support ticket)

    Could someone else at your end try perhaps? Sorry for the hassle…

    #1131549
    Lely
    Moderator

    Hi Simon,

    Upon checking, that custom CSS is working. See attached screenshot.

    ***Update: Sorry I did check the test site and not the live site. Same with Christopher, I got the same issue. We need authentication credentials to access your live site.

  • <script> jQuery(function($){ $("#no-reply-1120078 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>