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

modify the login form on the frontend

Asked by Lorna Guttormson 1 year ago Last activity 1 year ago

I have read how to change the login form - that is used to get into the administrator section of the website.
https://magazine.joomla.org/all-issues/may-2024/how-to-customize-the-joomla-5-login-page

I would like to modify the same form that is used for logging in the front end. Is there a way to do this? I want to change the color of the button and the color of the header. I have tried
.view-article #sp-header {
background-color: rgb(163, 159, 159);
} to change the header color but it didn't seem to work.
For the button , I tried
body .sppb-btn.btn-primary {
background:#383838 !important
} which is the same color for the btns with pages but, again, it didn't work

Accepted answer

Marked as the solution

2 more replies

Paul Frankowski Senior Staff
1 year ago · edited

In your case about the buttons colors you needed that:

body .sppb-btn.sppb-btn-secondary, body .sppb-btn.btn-seconday, 
body .sppb-btn.btn-primary, body .btn.sppb-btn-secondary, 
body .btn.btn-seconday, body .btn.btn-primary {background: red;}

body .sppb-btn.sppb-btn-secondary:hover, body .sppb-btn.sppb-btn-secondary:focus, body .sppb-btn.sppb-btn-secondary:active, body .sppb-btn.btn-seconday:hover, body .sppb-btn.btn-seconday:focus, body .sppb-btn.btn-seconday:active, body .sppb-btn.btn-primary:hover, body .sppb-btn.btn-primary:focus, body .sppb-btn.btn-primary:active, body .btn.sppb-btn-secondary:hover, body .btn.sppb-btn-secondary:focus, body .btn.sppb-btn-secondary:active, body .btn.btn-seconday:hover, body .btn.btn-seconday:focus, body .btn.btn-seconday:active, body .btn.btn-primary:hover, body .btn.btn-primary:focus, body .btn.btn-primary:active {
  background: #222;}

With the dark header, I also used extra CSS line.

Yes, I already added & used on your site :)
All is as you wanted.

Lorna Guttormson Asked this

Thank you , yes, perfect. I see that you put the custom css into the custom.css in the pitech/css directory rather than into the custom code box in the administrator area or the pitech/scss directory. How do they relate? If I were to put it into the scss directory would it get minified in the advanced/'compile scss to css' stage ? If I put it into the administrator area where the boxes for custom code & custom css are - is there a hierarchy here that this administrator custom css overrides the ones in the files? In our previous site we had all our custom code in the template/css directory and used JCH Optimize to do the minification.

Log in to reply.