Remove "addthis-bar" from header

Permalink 1 user found helpful
Hi, how can i remove the add-/edit-bar
(header nav) from the header element?

noople

 
Mnkras replied on at Permalink Reply
Mnkras
You mean the nav?
thephilm replied on at Permalink Reply
thephilm
If I understand your question correctly, the bar will only be shown to those who are logged in and have appropriate permissions to add or edit a page. So if you click sign out in the upper right corner, it's gone... otherwise, if you have made some changes to the way the standard permissions work, you may need to go to your-site.com/index.php/dashboard/settings/set_permissions/ and make sure that only admins can edit etc.
Phil
If this is not what you are referring to, can you send a screen shot with what you are trying to remove!
Thanks.
noople replied on at Permalink Reply
i need to know how i can remove the add/edit block element in the header (admin mode).

thank you! noople
noople replied on at Permalink Reply 1 Attachment
see attachment. don't need the "header nav".
jordanlev replied on at Permalink Best Answer Reply
jordanlev
Do you mean that you don't want the header nav to be in your site? Then just click on (while in edit mode) and choose "Delete Block" from the popup menu.

Or do you mean that you want the header nav there but don't want anyone to be able to edit it? In that case you want to "hard-code" the autonav block into your theme's page type templates. If the theme you are using was built in a standard way, then you can do this by editing the "header.php" file inside the "elements" directory of the theme directory you're using. Find the code that looks something like this:
<?php
$a = new Area('Header Nav');
$a->display($c);
?>

and replace it with this:
<?php
$nav = BlockType::getByHandle('autonav');
$nav->controller->orderBy = 'display_asc';
$nav->controller->displayPages = 'top';
$nav->controller->displaySubPages = 'none';
$nav->render('templates/header_menu');
?>
noople replied on at Permalink Reply
That's it! I'll edit the header.php with the hard coded navigation output. Actually i did this in a project two years ago, but didn't remember anymore :( Thank you for your help!