You need to sign in to do that
Don't have an account?

How to change the Tab Style of Standard Object using Vistualforce page?
Hi All,
I have a requirement to change the Tab colour of Accounts Tab to Orange,so that All the Section Names in Accounts will have Orange Colour and also the Related list names should have orange border instead of the Standard blue in "Account Detail page".
Wht i have Coded till now :-
<apex:page standardController="Account" tabstyle="Territory__c">
<apex:detail relatedList="true" title="true"/>
</apex:page>
In the above Code Territory__c is my Custom object having Orange colour tabsyle i took reference from this link :-
http://www.salesforce.com/us/developer/docs/pages/Content/pages_controller_std_styling.htm
But its not working and bydefault Territory Tab is getting selected insted of accounts....:(
Create a Visualforce page with the below code(same as yours but without a tabStyle for now).
Then, go to Your Name | Setup | Create | Tabs. Under the Visualforce Tabs click New and name it as say Accounts and then select the Visualforce Page that we just created as the Content. Opt the style as say Orange CRT TV for the Orange color but do not add VF Accounts Tab to your header(where all tabs are there).
Now, back to the Visualforce page amend the code as below(notice the new tabStyle):
Finally we have to override the View of the Standard Accounts object. Go to Your Name | Setup | Cutomize | Buttons & Links. Under the Standard Buttons & Links, click Edit close to the View action. Select Override With with Visualforce Page and then select our Visualforce page from that list. Click Save.
Got this Solution from Customer Community from Deepak K Anand...
All Answers
It is working exactly as the doc you have linked to describes. Their example is:
--- snip ---
the following page uses the Account standard controller, but renders a page that highlights the Opportunities tab and uses the Opportunity tab's yellow coloring:
--- snip ---
So that is what you are seeing - you are using the account standard controller, but have rendered a page that highlights the Territory tab.
Create a Visualforce page with the below code(same as yours but without a tabStyle for now).
Then, go to Your Name | Setup | Create | Tabs. Under the Visualforce Tabs click New and name it as say Accounts and then select the Visualforce Page that we just created as the Content. Opt the style as say Orange CRT TV for the Orange color but do not add VF Accounts Tab to your header(where all tabs are there).
Now, back to the Visualforce page amend the code as below(notice the new tabStyle):
Finally we have to override the View of the Standard Accounts object. Go to Your Name | Setup | Cutomize | Buttons & Links. Under the Standard Buttons & Links, click Edit close to the View action. Select Override With with Visualforce Page and then select our Visualforce page from that list. Click Save.
Got this Solution from Customer Community from Deepak K Anand...