• Resolved vitruvian1man

    (@vitruvian1man)


    My WPForms submit button initially was showing different colors for background and hovers color relative to my theme’s default settings.

    I did notice that I may modify the submit button’s color using the block editor to match my theme’s default settings, which is nice.

    Anyway, and unfortunately, my block editor doesn’t enable me to modify the submit button’s hover color. So I get a hover color that’s different from all the other hover colors used on my site, which all default to the theme’s color scheme except WPForms.

    So, I got some tips from the Internet on what code I needed to insert in my WordPress’s custom CSS:

    Here’s what I inserted:

    .wpforms-form button[type=submit] {

    background-color: #2872fa !important;

    border-color: #2872fa !important;

    color: #fff !important;

    transition: background 0.3s ease-in-out;

    }

    .wpforms-form button[type=submit]:hover {

    background-color: #1559ed !important;

    }

    The first part of this code works fine; the submit button shows the new color, #2872fa. However the second part, regarding the hover color, does not show the color that I indicated of 1559ed. The hover color still shows the default hover color that WPForms uses.

    I’m curious why WPForm doesn’t default to my theme’s color themes for the submit button (both base and hover colors) by default. I have a form from a different provider (IceGram Express) for a Subscription form and it matched my theme’s colors for the submit button (base and hover) right out of the box, no fiddling around and troubleshooting necessary by me.

    Has anyone encountered this problem and have a solution? I’m sure it’s something simple, but I’m a newbie at this CSS stuff.

    I did read that another user wrote this a week or two ago, so I’m wondering if my issue is related:

    “In version 1.8.9.6, a background hover was added to the submit button using !important, which makes it impossible to customize the css. Could you revert this change? I have a purple website with the submit button hover in blue ??

    I used rollback to version 1.8.9.5 and the color returned to normal.”


    I look forward to any feedback or solutions. In the meantime, if I find a work-around, then I’ll share it with the community.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter vitruvian1man

    (@vitruvian1man)

    I got my issue resolved from a WPForms’ person via direct email because I had also sent an inquiry by a form.

    I only changed the code snippets provided (see below) to include my own custom colors and the !important statement as such:

    {
    background-color: #FAF243 !important; /* Yellow background */
    }

    {
    background-color: #e5da00 !important; /* Darker yellow background */
    }

    Here is the CSS snippets that were provided. As mentioned, they work provided one puts in that statement, !important.

    /* Change submit button color / div.wpforms-container .wpforms-form input[type=submit], div.wpforms-container .wpforms-form button[type=submit] { background-color: #FAF243; / Yellow background */
    }

    /* Change submit button's hover color / div.wpforms-container .wpforms-form input[type=submit]:hover, div.wpforms-container .wpforms-form input[type=submit]:active, div.wpforms-container .wpforms-form button[type=submit]:hover, div.wpforms-container .wpforms-form button[type=submit]:active, div.wpforms-container .wpforms-form .wpforms-page-button:hover, div.wpforms-container .wpforms-form .wpforms-page-button:active { background-color: #e5da00; / Darker yellow background */
    }

    • This reply was modified 7 months, 2 weeks ago by vitruvian1man.
    Plugin Support Ralden Souza

    (@rsouzaam)

    Hi @vitruvian1man,

    Thank you for reaching out and reporting this issue!

    I’m glad to see that a member of our support team was able to provide you with a CSS snippet to help address the problem while we work on a fix to the issue.

    Please know that we’ve created a report to notify our development team about this issue. I apologize for the inconvenience this may cause, and I’m unable to provide an estimated time for when a fix will be released.

    I really hope a fix can be included in the next WPForms Lite version.

    Thanks!

    Plugin Support Ralden Souza

    (@rsouzaam)

    Hi @vitruvian1man,

    I wanted to let you know that we are working on resolving the issue with WPForms Lite 1.9.1.

    If you have any questions or need any assistance with using WPForms Lite, please don’t hesitate to reach out.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WPForms Background/Hover Colors for Submit Button Different From Theme’s’ is closed to new replies.