New Landing How can we help? Themeforest Theme Support Uplift Gravity Forms Submit Button Not Picking Up Accent Color

Viewing 5 posts - 1 through 5 (of 5 total)
  • Posted in: Uplift
  • #325236
    alexwright
    Member
    Post count: 72

    Hello!

    This issue came up before – submit buttons in Gravity Forms weren’t picking up the accent color and were instead being styled with a transparent background.

    You all offered a patch before and noted you’d apply the patch to future updates.

    Submit Button Styling – Transparent?

    I’m still seeing the issue on another project (link included above), and adding .gform_wrapper input[type="submit"] and .gform_wrapper input[type="submit"]:hover to lines 411 and 412 of includes/customizer/custom_css.php is no longer doing the trick as it did before.

    Did the file that controls what elements the accent color gets applied to change? I see something similar in includes/sf-styleswitcher/sf-styleswitcher.php but you know better than I.

    How can I get Gravity Forms submit buttons to pick up the accent color and not a transparent background?

    Thanks!

    -Alex

    #325333
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Will have to forward this one to the development team.
    Let’s wait for the reply.

    -Rui

    #325407
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi @alexwright

    We just added that code to custom_css.php for the next update. Once the code is added there, make sure to save the theme options to flush the generated code.

    Let us know if that sorts it!

    – Ed

    #325579
    alexwright
    Member
    Post count: 72

    Thanks for this.
    make sure to save the theme options to flush the generated code was the part I was missing. Thanks for reminding me of that. I got lines lines 411 and 412 looking like this

     $custom_styles .= 'input[type=submit], button[type=submit], input[type="file"], .wpcf7 input.wpcf7-submit[type=submit], .gform_wrapper input[type="submit"] {background: ' . $accent_color . ';color: ' . $accent_alt_color . ';}';
            $custom_styles .= 'input[type=submit]:hover, button[type=submit]:hover, .wpcf7 input.wpcf7-submit[type=submit]:hover, .gform_wrapper input[type=submit]:hover, .mymail-form input[type=submit]:hover, .gform_wrapper input[type="submit"]:hover {background: ' . $

    but I had forgotten that step.

    You can mark this as resolved.

    #325583
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Resolved!

    thanks for confirming.

    – Ed

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

You must be logged in to reply to this topic.