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
tsworldtsworld 

How to customize Experience Builder Error page for Salesforce Community Site

Problem: I want to show custom error messages on the community site for different http errors. 

I have visited the help page for Site Error Page (https://help.salesforce.com/articleView?id=sf.sites_error_pages.htm&type=5)but that wasn't helpful to me. The navigation page mentioned in help doesn't take me to the Community Site 'From Setup, enter Sites in the Quick Find box, then select Sites.' .... 

Instead I have to do 'All Sites > Select Workspaces > Administration > Pages > click Go to Force.com' which takes me to the same page given in help document. But assigning the error page doesn't show up on communities, whenever there is an issue it shows 'Invalid page' which is defined in Digital Experience Builder. 

Now if my understanding is correct I need to customize the pre-defined 'Error' page on Cummunity Experience Builder such that it recognize the http error type and show appropriate message. Please help how to achieve that?
 
Danish HodaDanish Hoda
hi there,
there are two ways to modify your Error page in Community : 
Go to Setup -> All Sites -> Builder
1. Add your custom components on to the page by drag-and-drop and remove the "Invalid Page" Content
2. Create a new Error page variation and by clicking the gear icon on the Error page and assign it to default.

NOTE : Don't forget to Publish your site when changes are done.