Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #1485917

    Hi Kresi Support,

    Hope you’re doing well.

    I’ve been trying to update the styling of the “Submit” button on our contact page (https://struct.net.au/contact/) so it matches the “Services” button to the right, but I haven’t had any luck getting it to look the same.

    Would you be able to help me with this?

    Thanks in advance.

    #1485922

    Hey lara666,

    Thank you for the inquiry.

    You can add this css code to apply the style of the default dark transparent button to the contact form’s submit button:

    .contact-form :is([type=submit],button:not([type=reset])) {
        align-items: center;
        display: inline-flex;
        gap: .5em;
        justify-content: center;
        border-radius: 100px;
        color: rgba(0, 0, 0, 0.6);
        border: 1px solid rgba(0, 0, 0, 0.6);
        background: 0 0;
        font-size: 14px;
        border-style: solid;
        border-width: 1px;
        transition: all 0.4s ease-in-out;
        padding: 9px 10px 7px;
        width: 80px;
    }

    Best regards,
    Ismael

    #1485987

    Hi Ismael,

    Thanks so much for your response, it’s looking great so far.

    Is it possible to make the submit button wrap more closely around the text (like the Services button), instead of stretching the full width of the column?

    Thanks!

    #1486002

    Hi,

    Thank you for the update.

    We already set the width to 80px, but it seems to be overridden by the default styles. Try to replace the selector “.contact-form :is([type=submit], button:not([type=reset]))” with “#top #wrap_all .contact-form :is([type=submit], button:not([type=reset]))”.

    Let us know the result.

    Best regards,
    Ismael

    #1486121

    Hi Ismael,

    Thanks for getting back to me. Unfortunately, this change only reverts the button to red with white text, and it still spans the full width of the column.

    #1486123

    Hi,

    Please remove the previous modification and replace it with the following css code, then make sure to purge the cache or clear your browser history afterward.

    #top #wrap_all .contact-form :is([type=submit], button:not([type=reset])) {
        align-items: center;
        display: inline-flex;
        gap: .5em;
        justify-content: center;
        border-radius: 100px;
        color: rgba(0, 0, 0, 0.6);
        border: 1px solid rgba(0, 0, 0, 0.6);
        background: 0 0;
        font-size: 14px;
        border-style: solid;
        border-width: 1px;
        transition: all 0.4s ease-in-out;
        padding: 9px 10px 7px;
        width: 80px;
    }

    Best regards,
    Ismael

    #1486127

    Hi Ismael,

    Thanks so much, that worked perfectly!

    While we’re on the topic of buttons, I have another page where I’d like to keep the existing Form Color Scheme but change the button to a dark transparent style, like on the other pages. However, I can’t see an option for this in the Contact Form settings, could you please advise?

    #1486133

    Hi,

    Try to edit the Contact Form element and set the Styling > Form Color Scheme to Dark Transparent. You can also replace the previous css with this:

    #top #wrap_all .main_color .button, .main_color #submit, #top #wrap_all .contact-form :is([type=submit], button:not([type=reset])) {
        align-items: center;
        display: inline-flex;
        gap: .5em;
        justify-content: center;
        border-radius: 100px;
        color: rgba(0, 0, 0, 0.6);
        border: 1px solid rgba(0, 0, 0, 0.6);
        background: 0 0;
        font-size: 14px;
        border-style: solid;
        border-width: 1px;
        transition: all 0.4s ease-in-out;
        padding: 9px 10px 7px;
        width: 80px;
    }

    Best regards,
    Ismael

    #1486135

    Hi Ismael,

    Thanks for your response!

    Sorry, I’d like to keep the contact form as it is, but just change the submit button to dark transparent.

    #1486185

    Hi,

    Have you tried using the recent css provided above? It should apply the same dark transparent style to the contact form’s submit button.

    Best regards,
    Ismael

    #1486263

    Hi Ismael,

    Yes, I’ve already applied it under Enfold > General Styling. Is there anywhere else I should be applying it to make sure it works correctly?

    Thanks!

    #1486292

    Hi,

    Thank you for the updat.e

    You may need to toggle or temporarily disable the Enfold > Performance > File Compression settings. If it’s still not working, provide the login details in the private field so we can test the modification.

    Best regards,
    Ismael

    #1486550

    Hi Ismael,

    Thanks for the suggestion.

    I tested it, but unfortunately, it didn’t work. Please see the login details below so you can take a look.

    #1486558

    Hi,

    Thank you for the info.

    We edited the Quick CSS field and adjusted the selector in the css rule. Please purge the cache before checking.

    #top #wrap_all .main_color .button, .main_color #submit, #top #wrap_all .contact-form :is([type=submit], button:not([type=reset]))
    

    View post on imgur.com

    Best regards,
    Ismael

    #1486559

    Hi Ismael,

    Thank you for the update, it looks great!

    Appreciate your help with this.

    #1486569

    Hi,

    No problem! Let us know if you have more questions. Have a nice day.

    Best regards,
    Ismael

Viewing 16 posts - 1 through 16 (of 16 total)
  • The topic ‘Submit button style change’ is closed to new replies.