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

  • PRANAV

    Member
    July 14, 2016 at 4:11 pm

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

    showheader

    showheader1

     

    but it doesn't show sidebar Why?

  • Saurabh

    Member
    March 23, 2017 at 12:15 pm

    Hi,

    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:

    Thanks

  • Ashish Sharma

    Member
    June 20, 2018 at 6:02 am

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

    http://www.sfdcdrona.com/2018/06/visualforce-headers-and-sidebar-do-not.html

Viewing 1 - 3 of 3 posts

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos