Topic-icon Change look of Login / Logout button to template standard?

Active Subscriptions:

None
11 years 4 months ago - 11 years 4 months ago #50929 by StefanSchoch
Hi there,

I managed to change the look of the logout button by changing the logout.php file (see attachement) to my template standard.
But I can't get it work for the joomlaLogin_vertical.php (don't understand the java logic).

Can you please help?
I want the button in the login module look the same as in the logout.

1422978673_Buttons.zip

Update:
it seems to work with this code:
<div class="control-group" id="form-sclogin-submitcreate">
                    <button type="submit" name="Submit" class=" <?php if (!$showRegisterLinkInLogin)
                    {
                        echo 'button  art-button';
                    } ?>"><?php echo JText::_('MOD_SCLOGIN_LOGIN') ?></button>
                    <?php if ($showRegisterLinkInLogin) : ?>
                        <a class="button  art-button" href="<?php echo $helper->registerLink; ?>"><?php echo JText::_('MOD_SCLOGIN_REGISTER_FOR_THIS_SITE'); ?></a>
                    <?php endif; ?>
                </div>
but I'm note sure if this is a good way t ochange the code....
Any tipps?
Last edit: 11 years 4 months ago by StefanSchoch.
The topic has been locked.
Support Specialist
11 years 4 months ago #50931 by mel
From that code, it looks like the only things that you are changing are just some classes on the button and anchor tags, which isn't that big of a deal. However, it seems to me that you could possibly to do some changes just in CSS without having to make any PHP changes.

Either way is valid. If you end up changing your CSS, we'd recommend putting it in a theme override for SCLogin. If you end up changing the PHP, we'd recommend creating a template override for that file. In both cases, doing an override would ensure that you don't lose anything when you upgrade SCLogin next.

It's kind of personal preference, and without seeing your page and being able to inspect it in developer tools to see how complicated the CSS would have to be with your template, it's really up to you how to proceed if you already have something working.

-Melissa
The topic has been locked.