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
Sagar PawarSagar Pawar 

renaming Home tab

Hi,

 

I can rename the home tab of customer portal  by using javascript by using the following code. 

 

Create a html area home component with following code

<script>

  var gethometab=document.getElementById('home_Tab');

 gethometab.getElementsByTagName("a")[0].setAttribute("title","test");

  gethometab.getElementsByTagName("a")[0].innerHTML="test";

 </script>

 

Add the home component in home page layout.

 

 

But when i click on other tabs of customer portal then that name again renamed as Home

So please tell me the solution.

 

regards,

Sagar.

 

 

 

Peter_sfdcPeter_sfdc

I think to solve this, you would need to add this code to every tab in your portal. 

 

This should be trivial for any tabs that are built using Visualforce. It's going to be more tricky. 

 

Some thoughts that I've not tried and have no idea if they will work: 

1. Try embedding this code in a formula field that outputs HTML.

2. Try embedding a VF page in the page layout. Tricky thing here is that the VF page is in an iframe. 

 

I took a quick look at 1, and it doesn't seem like we allow that. So maybe have a go with number 2. 

 

Alternatively, look into Communities. I think we allow a lot more branding options for communities. 

sandeep@Salesforcesandeep@Salesforce
you need to put this homepage component on all home page layouts