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
Steve AthertonSteve Atherton 

how to disable a dashboard header

We have a dashboard on the home page of our community.  is it possible to disable the header as it takes up a huge amount of space.  I know it's not possible through the standard UI, but can we buld a custom VF page or lightning component into which we can embed a header-less dashboard (but keep the refresh button if possible)?
NagendraNagendra (Salesforce Developers) 
Hi Steve,

sorry for this issue you are encountering.

Yes, this is possible by creating a custom visual force page.

Try this piece of code which removes the header and sidebar.
<apex:page showHeader="false" sidebar="false"><iframe name="VisualForceLeads" src="/{your id here}?isdtp=mn" height="1000" width="100%"></iframe></apex:page>
Hope this helps.

Kindly mark this as solved if the reply was helpful.

Thanks,
Nagendra
 
Steve AthertonSteve Atherton
Not sure if I'm doing this correctly, here;s the VF code I'm using:

<apex:page showHeader="false" sidebar="false"> <iframe name="Barley" src="/{01Z0q000000DAYYEA4}isdtp=mn" height="500" width="100%"></iframe> </apex:page>

This is the URL for the dashboard:
https://catalyze--dev.lightning.force.com/lightning/r/Dashboard/01Z0q000000DAYYEA4/view?queryScope=userFolders
 
Steve AthertonSteve Atherton
Ths is specifically what I'm trying to do
User-added image
raju.Braju.B
Hi Steve,
Please let me know if this is resolved. even I have the same requirement.