I have installed the Front Page module on my site. I want to show visitors (not-logged in users) to see the same homepage as logged in users but without the navigational bar.

I have used re-direct to the "/home" in the front page settings and removed menu permission in the anonymous users roles section but I am getting an access denied message.

  • I read online to create a page.tpl.php alias, remove the menu from it and attach/use that one for that page ONLY in the re-direct option of front page module
    – user54721
    Dec 16, 2015 at 19:01
  • Try with Context module. With it you can remove blocks when certain conditions are met. Dec 17, 2015 at 5:29

1 Answer 1


Create a new template for your front page name it page--front.tpl.php

Create a variable which assign a role to a temporary variable in your template_preprocess_page(&$vars) like

function THEMENAME_preprocess_page(&$vars) {
  global $user  
  if(drupal_is_front_page()) {
   if(in_array('anonymous', $user->roles)) {
      $vars['navigation'] = false;

then in you page--front.tpl.php just check if($vavigation) ..

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.