I d like to remove the Login Register from the top right corner of the design. How do I do that?

Thanks

Comments

VM’s picture

Status: Active » Fixed

inspect and if necessary edit page.tpl.php

farshad592’s picture

Thanks - I did it using the page.tpl.php and the page-front.tpl.php . But I wish it was a block so I could call it in for some pages in case I needed that.

VM’s picture

test the code in a page content type, if it works add it to a block or invetsigate the logintoboggan.module

danpros’s picture

Status: Fixed » Closed (fixed)

@VM - thanks for your help :)

@farshad592 - Please read the Danland handbook, we already update it.

Closed.

verta’s picture

Category: support » feature
Status: Closed (fixed) » Active

I'd like to make this a feature request.

I have user registration disabled at admin/user/settings using the setting

Public registrations: Only site administrators can create new user accounts.

and I'd like to not have to customize page.tpl.php on future updates to the theme to remove the "Register" link.

VM’s picture

IMO, removing the link for everyone isn't the way forward. I'd venture a guess that the link is needed in as many sites as it isn't needed. Thus trading one set of users who have to edit a tpl.php to remove the link for another set that will have to edit the tpl.php to add the link.

danpros’s picture

Version: 6.x-1.2 » 6.x-2.0
Status: Active » Closed (fixed)

Hi,

Actually the login and register or feed icon can be disable via css

Below is the html output

<div id="authorize">
<ul>
<li class="first"><a href="/user">Login</a></li>
<li><a href="/user/register">Register</a></li>
</ul>
<a href="http://www.example.com/rss.xml" class="feed-icon"><img src="/misc/feed.png" alt="Syndicate content" title="Drupal RSS" width="16" height="16" /></a>  
</div>

To disable the login register rss

#authorize {
display:none;
}

To disable the login register

#authorize ul {
display:none;
}

To disable only the login

#authorize ul li.first{
display:none;
}

To disable only the register you can set the #authorize ul li to display:none; and set the #authorize ul li.first to display:block;

Add so on..

I think the problems solved. I close this.

Thanks,
Dan