Skip to Content

FIORI – How to hide Catalog button on FIORI launchpad/hide what ever you don’t want to see

You do not want your users to see the Catalog button or use its feature on the FIORI launchpad ?

If you are already on SP09 of SAPUI addon – please refer to this blog – FIORI Launchpad SP09 – How to – Standalone, headerless, embeded ….

There is no out of the box way to do this as of today, in the meantime I will suggest a workaround to achieve this. this may not be the best solution but this will work, please comment if there is a better approach.

Prerequisites –

Find out using Chrome’s Inspect Element Feature to identify technical details of what you want to hide.

  • Launch the FIORI launchpad in Chrome
  • Press F12 key on your keyboard to open Chrome Developer tools
  • Click on the first Icon on the developer tools window

               Inspect_Element.PNG

  • Move your mouse on the Launchpad and Click an object on the launchpad that you want to hide (Catalog Button / Search field / anything else)

               Choose.PNG

  • Once you click on the object you will notice that in the developer tool window, the html tag of the selected object is displayed

               html.PNG

  • Not always will it be the actual line you are looking for – but Chrome will help you to get closer to what you are looking for 🙂
  • You see that the <span> tag does not contain any css emements – so this tag will not be helpful
  • Click on its neighbors(html tags) and see where they are pointing to.
  • After initial set of trials you will see that <a tabindex=0 ……. this line has a CSS element “class = sapUiUfdShellHeadItm” and this may be helpful,
  • You can test within chrome to see if this css element will be helpful to hide your button/element
  • Click on the tag <a tabindex=0 ….>
  • On the right side of the Developer tools in Chrome, you will find the actual CSS styles of the Class sapUiUfdShellHeadItm,
  • You can do a “what if analysis” by changing the CSS elements of this style
  • Click on an empty spot near the definition of sapUiUfdShellHeadItm,
  • This will allow you to add another attribute to the CSS Style sapUiUfdShellHeadItm
  • Type in ‘display: none;’ (if display property is already defined you can as well modify its property rather than adding one)
  • Once you have added this you will notice that the button/element you wanted to hide is no more visible on the screen
  • You now know the CSS definition you should be modifying.

Now you know what needs to be hidden, lets us see how to achieve this without modifying the standard SAP Code.


1) Create a theme as a copy of Blue Crystal (as an example) – you can refer to any of the existing blogs on how to create a custom theme – SAP Fiori – UI Theme Designer by Masayuki Sekihara

 

2) In the Theme Designer, you can use Expert mode to edit/override the CSS definition.

3) Under Expert mode, In addition to the actual definition of CSS Class sapUiUfdShellHeadItm, add the property “display:none;” to it

     css.PNG

4) Publish your Theme

5) Launch your FIORI launchpad with the new theme specified in the url parameter, (http://myserver:port:…..FioriLaunpad/index.html?sap-theme=<yournewtheme>@………) refer to the blog written by Masayuki Sekihara if you do not know the parameters used to call custom theme – How to set a theme parameter to SAP Fiori launchpad

You no longer see what you do not want to see –

Babu Ganesh V

Customer Experience Group

SAP Labs India Pvt Ltd

Bangalore

11 Comments
You must be Logged on to comment or reply to a post.