Show block on specific pages:
Show on every page except the listed pages.
Show on only the listed pages.
Show if the following PHP code returns TRUE (PHP-mode, experts only).
Thanks for reply, but this is not solution because at block configuration primary links are disabled. Pages parent item are set to "primary links" and they still included in page header.
Often the above may not be possible, if the "Primary links" menu is not a sidebar block and is completely disabled in admin/build/block, and the theme prints the "Primary links" menu directly at the top of the page.
In such cases, you can do it in your theme, by editing the page.tpl.php file. Find where $primary_links is printed in the theme that you are using, and add a condition, if($is_front) or if(drupal_is_front_page())
what blogbold said helped. More, if you want to display the links just for the authentificated users, you just have to insert the "primary links" block into the header section.
Not sure what your reason is for hiding primary links on the front page. I'm assuming you don't want anonymous users to click on those links. You can download the Content Access module and change the access for the pages that the primary links link to. If you set the access for those pages for authenticated users or users with certain roles, the primary links to those pages will be hidden to anonymous users. When you log in as an authenticated user, the primary links reappear.
Comments
goto 'Primary links' block
Home › Administer › Site building › Blocks
'Primary links' block->configure.
look for
Show block on specific pages:
Show on every page except the listed pages.
Show on only the listed pages.
Show if the following PHP code returns TRUE (PHP-mode, experts only).
Enter the page that you dont want..
sharma chelluri
Thanks for reply, but this
Thanks for reply, but this is not solution because at block configuration primary links are disabled. Pages parent item are set to "primary links" and they still included in page header.
Sorry for my english.
Often the above may not be
Often the above may not be possible, if the "Primary links" menu is not a sidebar block and is completely disabled in admin/build/block, and the theme prints the "Primary links" menu directly at the top of the page.
In such cases, you can do it in your theme, by editing the page.tpl.php file. Find where $primary_links is printed in the theme that you are using, and add a condition, if($is_front) or if(drupal_is_front_page())
-------- Edited to add:
Or the opposite to hide it.
see theme configuration for additional elements
Administer - Site building - Themes
scroll to the theme in use, click on the "configure" link (right column "Opterations")
There is a button (probably depending on the theme) to enable elements like primary links.
solution
what blogbold said helped. More, if you want to display the links just for the authentificated users, you just have to insert the "primary links" block into the header section.
hide primary links on front page for anonymous users
Not sure what your reason is for hiding primary links on the front page. I'm assuming you don't want anonymous users to click on those links. You can download the Content Access module and change the access for the pages that the primary links link to. If you set the access for those pages for authenticated users or users with certain roles, the primary links to those pages will be hidden to anonymous users. When you log in as an authenticated user, the primary links reappear.