2

Kindly suggest, how to hide/show Ribbon on the fly in SharePoint 2013?

enter image description here

  • What is on the fly? What are you looking for - the navigation bar that runs along the top of the screen or are you viewing a list or something else? – Tally Jan 4 '18 at 11:09
  • Thanks for reply, # On the fly, means user could be do hide/show as they want from browser at a time. # I need to hide/show blue ribbon and it's immediate next grey ribbon. Cheers for more reply. – M Jain Jan 4 '18 at 12:00
1

Select "Gear" icon from top right then click "Show Ribbon" option if it not showing there and do the following to enable/disable it.

Go to "Site settings->Navigation->Under Show and Hide Ribbon heading->choose Yes/No" click save.

This will allow user to view/hide ribbon on the fly.


if you want to hide the bluebar(i.e. SuiteBar) you have couple of options:

  1. Add security trimmed control to check user permission and hide it.
  2. Inside a common CSS file or add the below css in content editor webpart

#suiteBar, #s4-ribbonrow{display:none}

  • Thanks for reply, # Actually "Show/Hide Ribbon" is showing there but once click on it nothing happened. Once click on "Hide Ribbon" blue ribbon still appeared. # In "Site Settings --> Navigation" section already set as Yes. Cheers for more reply. – M Jain Jan 4 '18 at 11:39
  • Can you clarify what you want to show/hide.. SuitBar(blue bar) or Ribbon?? above config will only work to show/hide ribbon. if you want to show/hide 'suitebar' you need to do via css or masterpage security trimmed control – little_big_thoughts Jan 4 '18 at 11:40
  • # I need to hide/show Blue bar and immediate next Grey bar Ribbon. as like image attached in my question. # I applied "Show/Hide Ribbon" from Site Action but still Ribbon (grey bar) there, not disappeared. Cheers – M Jain Jan 4 '18 at 12:05
  • ok, do you want to hide bluebar based on user permission or for everyone? – little_big_thoughts Jan 4 '18 at 12:07
  • # Hide/show on the fly for everyone – M Jain Jan 4 '18 at 12:10
0

We can add the CSS style below into tag in the master page using SharePoint designer to achieve it.

<style>
.ms-designer-ribbon{
    display:none !important;
}
</style>

enter image description here

  • The question was about hiding it and showing it "on fly", which roughly would mean that the ribbon is hidden unless interacted to become visible. Your solution simply hides it for good. – moe Jan 5 '18 at 7:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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