Hello!
Is there a way to move the 'My account' & 'Log out' links from the bottom to the top for logged in users? Exactly to the position where the "Log in" and "Register" links are located for users that are not logged in?

Thanks in advance!!

Comments

danpros’s picture

Hi,

Of course you can do that by editing the page.tpl.php

<?php if($secondary_menu) : ?>
<div id="subnav-wrapper">
<?php print theme('links__system_secondary_menu', array('links' => $secondary_menu, 'attributes' => array('id' => 'subnav', 'class' => array('links', 'clearfix')))); ?>
</div>
<?php endif; ?>

Move above code else where, the rest is CSS.

Dan

70111m’s picture

Thank You!

klonos’s picture

If this was in a block that can be moved to whatever region one likes, that would be great. I know that #1 does the trick, but each time one upgrades to a new version of the theme, they will have to re-edit code.

danpros’s picture

Hi klonos,

Thanks, you give me an idea to adding new region in the bottom for secondary menu :)

Dan

klonos’s picture

No problem mate ;)

ishmael-sanchez’s picture

Status: Active » Fixed
phicarre’s picture

idem for RSS: it should be in a block !

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

ZitaS’s picture

Issue summary: View changes

Thanks Dan!

Just starting out on Drupal. Noted that this is within the Danland project but the code snippet works within any theme - (duh, although worth mentioning for anyone else who is very new and starting out in the world/journey of Web programming and Drupal). Just did a general google search to end up with this solution and applied it to my theme. Figured out where exactly to place it. Worked a treat.