Override Login page form

For Joomla! 4.x Coding related discussions, please use: http://groups.google.com/group/joomla-dev-general

Moderator: ooffick

Forum rules
Please use the mailing list here: http://groups.google.com/group/joomla-dev-general rather than this forum.
Post Reply
roman5555
Joomla! Intern
Joomla! Intern
Posts: 63
Joined: Tue Aug 17, 2010 9:58 pm

Override Login page form

Post by roman5555 » Thu Jun 30, 2022 3:46 pm

Hi, i want override login page form .
But in

Code: Select all

com_users/tmpl/login/default_login.php
is code

Code: Select all

<?php echo $this->form->renderFieldset('credentials', ['class' => 'com-users-login__input']); ?>
i want example labels next to input https://prnt.sc/-SYx8f8A2T_5

where i can override form fields and grid ? thanks
Last edited by toivo on Thu Jun 30, 2022 10:47 pm, edited 1 time in total.
Reason: mod note: moved from 4.x Templates

MarkRS
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 109
Joined: Thu Oct 29, 2009 8:28 am
Location: UK

Re: Override Login page form

Post by MarkRS » Fri Jul 01, 2022 3:59 pm

If you just want to override the labels you should be able to do that with language overrides.

What grid do you mean?
It's a community, the more we all contribute, the better it will be.

roman5555
Joomla! Intern
Joomla! Intern
Posts: 63
Joined: Tue Aug 17, 2010 9:58 pm

Re: Override Login page form

Post by roman5555 » Fri Jul 01, 2022 9:21 pm

i dont want override text labels .
i need change labels next to inputs, no on top inputs

MarkRS
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 109
Joined: Thu Oct 29, 2009 8:28 am
Location: UK

Re: Override Login page form

Post by MarkRS » Sat Jul 02, 2022 10:13 am

You create an override by selecting the template you're using (Admin panel -> System -> Site Templates) and using the "Create Override" button and then modifying the override file it creates.

I'm not sure that's the answer you're looking for though :(
It's a community, the more we all contribute, the better it will be.

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 29101
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Override Login page form

Post by Per Yngve Berg » Sat Jul 02, 2022 11:18 am

You don't need an override. Add CSS is sufficient.

Code: Select all

div.controls, control-label label {
    display: inline-block;
}


Post Reply

Return to “Joomla! 4.x Coding”