Jump to content

Removing the Edit Button


thetuningspoon
 Share

Recommended Posts

You might already know this, but if someone doesn't have edit permissions for that page then they won't see the Edit button (though you will for every page as you're a superuser).

If you want to remove it completely though, edit site/templates/foot.inc and remove this:

<?php

   // If the page is editable, then output a link that takes us straight to the page edit screen:
   if($page->editable()) {
       echo "<a class='nav' id='editpage' href='{$config->urls->admin}page/edit/?id={$page->id}'>Edit</a>";
   }

   ?>
Link to comment
Share on other sites

If you want to remove it completely though, edit site/templates/foot.inc and remove this:

<?php

// If the page is editable, then output a link that takes us straight to the page edit screen:
if($page->editable()) {
	echo "<a class='nav' id='editpage' href='{$config->urls->admin}page/edit/?id={$page->id}'>Edit</a>";
}

?>

Ah... thanks! I was looking for it in the header (doh!)

That's so wonderfully simple.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...