Jump to content

Recommended Posts

Posted

I'm using the in-context editing menubar plug-in, and to avoid confusing my clients, I'd like to be able to remove the little edit button that shows up in the corner of front-end pages by default. What's the best way to go about doing this?

Posted

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>";
   }

   ?>
Posted

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.

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
×
×
  • Create New...