Announcement

#1 2012-02-05 10:18:55

gunrah
Guest

Can I remove the Login link from the footer?

I am using the Stripped theme.  How do I remove the Login link that appears in the footer?

 

#2 2012-02-05 11:16:25

Zaphod
Former Piwigo Team
2006-11-13
441

Re: Can I remove the Login link from the footer?

Hi,

In the footer there is:
1) if you're not logged : a login link
2) il you're logged: a link to the preference page + a logout link
3) il you're an admin : an admin link.

I assume you want to keep (2) & (3) and just remove (1).


For this, you'll have to make a template-extension, and create a new version footer.tpl removing these lines :

Code:

          {if isset($U_LOGIN)}
            <a href="{$U_LOGIN}" rel="nofollow">{'Login'|@translate}</a>
          {/if}

          {if (isset($U_LOGIN) && isset($U_REGISTER))}-{/if}
          
          {if isset($U_REGISTER)}
            <a href="{$U_REGISTER}" title="{'Create a new account'|@translate}" rel="nofollow">{'Register'|@translate}</a>
          {/if}

Offline

 

#3 2012-02-05 12:13:34

gunrah
Guest

Re: Can I remove the Login link from the footer?

You are correct, I want to remove (1).

I took a look at the footer.tpl file before I posted this and assumed that was the one to edit.  Thank you for providing specific information on how to do it.

I'll report back if I get it working.

 

#4 2012-02-05 12:18:35

gunrah
Guest

Re: Can I remove the Login link from the footer?

That worked perfectly.  Thank you so much for your fast reply!

 

#5 2015-08-03 04:38:34

wftomlin
Member
2012-06-20
16

Re: Can I remove the Login link from the footer?

Hello,

I'm also trying to remove the 'Login' link in the footer of the 'Simple White' theme. I looked at the footer.tpl file but don't see any reference to 'login'.

This is my footer.tpl file:

Offline

 

#6 2015-08-03 07:47:12

flop25
Piwigo Team
2006-07-06
7037

Re: Can I remove the Login link from the footer?

Use CSS and the hidden attribute Check our Doc


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#7 2015-08-04 06:47:36

wftomlin
Member
2012-06-20
16

Re: Can I remove the Login link from the footer?

Thanks for replying.

Although this works (and is a simple solution, once you find the appropriate css file), it also hides the link to Piwigo. The wording in the footer file asks that you don't remove the copyright. I don't mind letting others know about this software. It's a great product, and the price is certainly right!

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact