• Resolved press789

    (@press789)


    Hello,
    I tried to make changes to the submit button like change the padding and so on,
    but no changes that I make in the optinforms-admin.css or optinforms.css apply to the button on the page. It stays the same.

    Another problem is, that the button looks completely different on mobile, the borders and the color are different, looks like so kind of opacity.

    What do I have to do?

    Thank you

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author WPKube

    (@wpkube)

    Hi,

    From what I can see you managed to increase the padding, correct?

    By the way, don’t make adjustments to the plugin files, they will get overwritten on update. Don’t add it to the theme’s style.css either, that’ll get overwritten when there’s a theme update.

    Add your custom CSS code in WP admin > Appearance > Customize > Additional CSS.

    Thread Starter press789

    (@press789)

    Hello,
    yes I was able to change the padding in the plugin’s admin are in the custom css field.

    The button still looks different on mobile, and the padding changes are not applied there, why is that?

    Do you know how to add a hover effect to the button? I tried it with different approaches in the custom css field, but nothing worked.

    Plugin Author WPKube

    (@wpkube)

    Hi,

    Just checked on my phone, the padding does apply and the rest of the styling as well.

    As for hover:

    #optinforms-form5-button:hover {
        background: #hexcode !important;
    }
    Thread Starter press789

    (@press789)

    The hover effect works great now thank you. The design of the button on mobile is still different than on desktop, the color is less intensive and the borders are different. Thanks for your help so far.

    Plugin Author WPKube

    (@wpkube)

    Hi,

    Try adding !important rules like on the previous example, that forces it to overwrite the inline styles that are added by the plugin based on the options from “Style your form”.

    So it looks like this:

    .element {
        cssrule: cssvalue !important;
    }
    Thread Starter press789

    (@press789)

    Hi,

    ok thanks a lot.

    Plugin Author WPKube

    (@wpkube)

    You’re welcome.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Button changes not working in css’ is closed to new replies.