Kindly suggest, how to hide/show Ribbon on the fly in SharePoint 2013?
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 Ribbonheading->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:
- Add security trimmed control to check user permission and hide it.
- Inside a common CSS file or add the below css in content editor webpart