SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have created a custom blog with the publishing feature enabled. When I am logged on with a normal user (with no admin rights) and click on a text or an image, "List Tools" appeares in the ribbon, kind of automatically goes into edit mode. I want to avoid this behavior. Any suggestion? Is there any settings that I can set?

1) When I open the blog the ribbon look like this: enter image description here 2) I click on some text: ex "What is a blog?": enter image description here

3) The ribbon look like this after I have clicked on the text for a normal user: enter image description here

share|improve this question
Thank you for your replies. – Elisabeth Apr 28 '11 at 7:19
Thanks for replies. I want to avoid to hide the ribbon bar. I want the blog to work like other publishing pages. If a user don't have permisson to a site, the "site Action" menu will not be shown. – Elisabeth Apr 28 '11 at 7:28

I noticed that the in the webpart div container there were two attributes, 'onkeyup' and 'onmouseup' which called a JavaScript function to trigger the list tools to show.

I added a single line of jQuery code to remove those two attributes from the s4-wpcell div container and I no longer get the list tools to show on when I click anywhere inside the list content.


I have included this inside the XSLT for the list view, but it could be included anywhere on the page after the web part or in the page head if it is referenced in a document ready statement.

share|improve this answer
Say, that's just what I needed! Thanks a bushel! – bgmCoder Nov 26 '15 at 2:07

This question came up some time ago on the MS foras.

The answers are more usable for anonymous access (eg removes for all) but see if it gets you going.

share|improve this answer
This solution can be used even in Office 365 environment, so it can be very useful in some situations. +1 from me! – Andrey Markeev Apr 27 '11 at 11:57

In addition to Anders Rask solution, I would also recommend you to take a look at this codeplex project:

It allows conditionally hide ribbon for one or more SharePoint groups and for anonymous users, if it is needed.

You will need to deploy a farm-level wsp to your site to make it work, and appropriate privilegies for doing this.

share|improve this answer

This is how I used Andrey Markeev's answer. I added this to the bottom of my ASPX and it worked like a charm!

<script type="text/javascript" language="javascript">
if(typeof(MSOLayout_MakeInvisibleIfEmpty) == "function" MSOLayout_MakeInvisibleIfEmpty();}

//stops the XSLTListViewWebPart from calling the list tools in the s4-ribbonrow 



share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.