I found the forum post about creating a CSS override for the default button background color for the Investa template ( https://www.joomshaper.com/forum/question/36086), but would also like to change the hover bkgd color as well. Can you provide the correct CSS code to add to the other one? Thanks.
Solved
Templates
Joomla 6
v1.0.4
Change the button hover bkgd color for Investa template
Accepted answer
Marked as the solution
Atick Eashrak Shuvo Staff
Please add the following CSS code to your Template Options -> Custom Code -> Custom CSS
body .sppb-btn.sppb-btn-default:hover{
background-color: #000000;
color: #ffffff;
}
Select the color according to your preference
After applying the change, please make sure to clear both your Joomla cache and your browser cache to see the updated result.
TRAC Marketing Asked this
Thank you. I tired that code addition but even with deleting caches, not getting the hover effect. Here's the Custom CSS I have in the template styles field.
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-color: #9E3129 !important;
}
body .sppb-btn.sppb-btn-default:hover{
background-color: #D25C53;
color: #ffffff;
}
Sample page (about 3 sections down, a stock template section): https://investa.tracmarketing.com/index.php/about-trac
Thanks.
1 more reply
TRAC Marketing Asked this
Got it working. Had to add the !important to the new code, and now it works. Thanks.
Log in to reply.