Black Friday 2026 50% off every plan Our biggest deal of the year on #1 Joomla products.
Ends in 12d 09h 21m 25s
Claim 50% off
Solved Templates

How to change the colour gradient of the buttons

Asked by HDcms 4 years ago Last activity 4 years ago

Accepted answer

Marked as the solution
Rashida Rahman Staff

Hi,

Sorry, I was given that specific button code as demo/sample. However, you can try the following:

body .sppb-btn.sppb-btn-default:hover, body .sppb-btn.sppb-btn-default:focus, body .sppb-btn.sppb-btn-default:active, body .sppb-btn.sppb-btn-primary:hover, body .sppb-btn.sppb-btn-primary:focus, body .sppb-btn.sppb-btn-primary:active, body .sppb-btn.btn-primary:hover, body .sppb-btn.btn-primary:focus, body .sppb-btn.btn-primary:active, body .btn.sppb-btn-default:hover, body .btn.sppb-btn-default:focus, body .btn.sppb-btn-default:active, body .btn.sppb-btn-primary:hover, body .btn.sppb-btn-primary:focus, body .btn.sppb-btn-primary:active, body .btn.btn-primary:hover, body .btn.btn-primary:focus, body .btn.btn-primary:active, body .sppb-btn.sppb-btn-primary.sppb-btn-outline:hover{
    background: yellow;
}
body .sppb-btn.sppb-btn-default, body .sppb-btn.sppb-btn-primary, body .sppb-btn.btn-primary, body .btn.sppb-btn-default, body .btn.sppb-btn-primary, body .btn.btn-primary, body .sppb-btn.sppb-btn-primary.sppb-btn-outline{
    background: blue;
}

It includes primary, default, and outlined peimary buttons.

The following blog may help you to find out the ID/class of your desired elements:
https://www.joomshaper.com/blog/which-line-of-css-i-have-to-edit-code-inspector-in-action

Best Regards

5 more replies

Rashida Rahman Staff

Hi there!

Yes, Ariba is right. You may change the button style or you can use custom CSS either. Here is sample code for you that you need to put in your custom CSS:

a#btn-1603719505769{
    background: linear-gradient(95.55deg,green 4.25%,red 93.67%);
}

Here is the hover gradient color effect changing code:

a#btn-1603719505769:hover{
    background: linear-gradient(95.55deg,yellow 4.25%,blue 93.67%);
}

You can use your desired colors within the above code.

Note: Path towards custom CSS: Extensions>Templates>Styles> Click on your current default template name then choose Template Options. Then find custom CSS within the custom code.

Best Regards

HDcms Asked this

Hi
Sorry but I couldn't do it.
I started with the module button at the bottom of the acymailing page but I can't find the place to change it in SPPB or the button hover
I found this item to disable

body .sppb-btn.sppb-btn-default, body .sppb-btn.sppb-btn-primary, body .sppb-btn.btn-primary, body .btn.sppb-btn-default, body .btn.sppb-btn-primary, body .btn.btn-primary {
    background: var(--gradient);
}

class="btn btn-primary button subbutton"
:root {
        --gradient: linear-gradient(95.55deg, #00c6fb 4.25%, #005bea 93.67%);
}

To simplify, how to have all the buttons in Wimble with only 1 blue colour at rest and only 1 colour on hover?
regards

HDcms Asked this

Hi
Thanks for the code and the link
It's all good
Regards

Rashida Rahman Staff

Glad to know that and you are always welcome:)

Log in to reply.