We have created the salesforce web tab and given an link URL to Visualforce page, page works fine. But we need this page without header. I tried with showheader=false but it didn't work.

How do we hide the salesforce header for this?

  • Ok. I have created the visualforce page with <apex:page showheader=false /> and created the web tab for this page, when I click on this tab still I can see the salesforce header. My requirement is not to show the salesforce header after clicking on this web tab. How I can achieve this?
    – Iqbal
    Commented Dec 14, 2015 at 5:39

2 Answers 2


You need to create a Visualforce tab instead of web tab.

In web tab. Page load inside the body section so It will not hide the above header. It will only hide the loaded VF page header.

If you want to hide page Header then create Visualforce tab and select your visualforce page.

enter image description here


  • Hi Ratan, We have very specific reason for web tab. We tried with VF page tab, it works great. But we need it in web tab.
    – Iqbal
    Commented Dec 14, 2015 at 5:52
  • @techsolutions. Then you need to use javascript hack for hiding header. You can get the header element using javascript and make display none. Hope this will work
    – Ratan Paul
    Commented Dec 14, 2015 at 5:54
  • Can you post set of code if you have?
    – Iqbal
    Commented Dec 14, 2015 at 5:57
  • ok let me try this first
    – Ratan Paul
    Commented Dec 14, 2015 at 6:06
  • @techsolutions nope we can't use javascript for this. I dont thing there is another solution except VF tab.
    – Ratan Paul
    Commented Dec 14, 2015 at 6:12

I found that showHeader="false" did not remove my header, perhaps this is a defect?

Therefore, I tried:

 <apex:page showHeader="false" sidebar="false">
       <iframe name="VisualForceLeads" src="/{your id here}?isdtp=mn"  height="1000" width="100%"></iframe>

and this approach removes the sidebar and the header immediately.

  • This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post - you can always comment on your own posts, and once you have sufficient reputation you will be able to comment on any post. - From Review Commented Dec 14, 2015 at 7:04
  • 1
    @BorisBachovski Obsolutely it provides some clarification with web Tab. It will remove header and sidebar for WebTab. Commented Dec 14, 2015 at 7:09

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .