Activity Forums Salesforce® Discussions ShowHeader and Sidebar problem in Visualforce page.


    July 14, 2016 at 4:11 pm

    If showHeader is false and sidebar is true in visualforce page the page looks like this




    but it doesn't show sidebar Why?

  • Saurabh

    March 23, 2017 at 12:15 pm


    I think if your Lightning is enabled for the org but when user is viewing in classic mode, custom visualforce pages aren't showing header or sidebar.

    Adding standardStylesheets="true" can  solve the problem.

    When you disable the inclusion of the Salesforce stylesheets, only your custom stylesheets affect the styling of the page. For the purposes of building up styles that partially or fully match the Salesforce look and feel, you might want to look at and use selected contents from the default stylesheets.

    Salesforce stylesheets aren’t versioned, and the appearance and class names of components change without notice. Salesforce strongly recommends that you use Visualforce components that mimic the look-and-feel of Salesforce styles instead of directly referencing—and depending upon—Salesforce stylesheets.

    Hope it may helps:


  • Ashish Sharma

    June 20, 2018 at 6:02 am

    This issue can be fix using the workaround given in this blog:

Viewing 1 - 3 of 3 posts

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos