function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
PR CanegalyPR Canegaly 

Don't see standard SalesForce header and sidebar elements in Trailhead "Use Static Resources" unit

I am working on the Trailhead "Use Static Resources" unit.  I see this in the instrutions - "Click Preview to open a preview of your page that you can look at while you make changes. A new window should open, showing the standard Salesforce page header and sidebar elements, and a short message from jQuery."  But I don't see the standard Salesforce page header and sidebare elements, I just see a bare browser window with just the little bit of jQuery ouput from the exercise.  I have noticed the same results in other training units.  Is there some setup that I am missing?  Thanks.
 
Best Answer chosen by PR Canegaly
Tina Chang 6Tina Chang 6
@PR Canegaly, I was having the same issue and then I switched my DE org to Salesforce Classic and hit the Preview button again and was able to see the page header and sidebar elements!

User-added image

Found this very useful:

https://trailhead.salesforce.com/en/modules/lex_dev_visualforce/units/lex_dev_visualforce_known_issues (https://trailhead.salesforce.com/en/modules/lex_dev_visualforce/units/lex_dev_visualforce_known_issues" target="_blank)

"The standard Salesforce Classic header and sidebar are always suppressed for pages when they’re displayed in Lightning Experience. In particular, the showHeader and sidebar attributes of <apex:page> have no effect on Visualforce pages when displayed in Lightning Experience."

Hope it helps!

All Answers

SandhyaSandhya (Salesforce Developers) 
Hi,

Standard Salesforce page header and sidebar elements refer to the below image.
If you specify all as false
<apex:page showHeader="false" sidebar="false" standardStylesheets="false">

Then you cannot see the standard header other wise you can see it in preview.

User-added image
Please mark it as solved if my reply was helpful. It will make it available for other as the proper solution.
 
Best Regards
Sandhya

 
Tina Chang 6Tina Chang 6
@PR Canegaly, I was having the same issue and then I switched my DE org to Salesforce Classic and hit the Preview button again and was able to see the page header and sidebar elements!

User-added image

Found this very useful:

https://trailhead.salesforce.com/en/modules/lex_dev_visualforce/units/lex_dev_visualforce_known_issues (https://trailhead.salesforce.com/en/modules/lex_dev_visualforce/units/lex_dev_visualforce_known_issues" target="_blank)

"The standard Salesforce Classic header and sidebar are always suppressed for pages when they’re displayed in Lightning Experience. In particular, the showHeader and sidebar attributes of <apex:page> have no effect on Visualforce pages when displayed in Lightning Experience."

Hope it helps!
This was selected as the best answer