Remove login and registration links

Events happening in the community are now at Drupal community events on www.drupal.org.
Citizen's picture

Could somebody please inform me on how I can remove the login and registration links from the top of the front page in OpenPublish? I am using OP v2.0.

Comments

Delete

pixelsweatshop's picture

in the page-header.tpl delete lines 43-51

    <?php
    if (user_is_logged_in()) :
    ?>
  • <?php
    print t('Hello');
    ?>
    <?php
    print l($GLOBALS['user']->name, 'user')
    ?>
  • <?php
    print l('Logout', 'logout')
    ?>
  • <?php
    else :
    ?>
  • Hello Visitor!
  • <?php
    print l('Log In', 'user')
    ?>
    or
    <?php
    print l('Register','user/register')
    ?>
  • <?php
    endif;
    ?>

or in components.css?Line 101 use display:none;

@nigel - re: Delete

Citizen's picture

Thank you so much for your help ... it worked like a charm! We're hoping to take our new newspaper's site live today!

Thanks

@nigel - re: Delete

Citizen's picture

Thank you so much for your help ... it worked like a charm! We're hoping to take our new newspaper's site live today!

Thanks

Don't forget to share us your

stattler's picture

Don't forget to share us your site's URL.

@stattler - re: Don't forget to share us your

Citizen's picture

We'll definitely make sure to do that, stattler. Your advice re: migrating our site was very helpful to us. It was a daunting task. It's just been me and one other person working on this project and both of us had an extremely steep learning curve to overcome (and still do).

Again, thanks for the help. We'll keep you posted.

user login issue

idCharlton's picture

Hi,

Can users not necessary to login at http://d23medianet.datgmedia.com/to access directly into my page?

Thanks alot

Beckmann

OpenPublish

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: