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
mekingmeking 

Customer Portal - Uploading Header File

Hello All,

 

We are using the Salesforce "out-of-the-box" customer portal. We are in the process of customizing it a bit more by putting in our own Header and overriding some CSS. The only issue we are having is when you upload the header file, it then of course removes the whole default header. Well when you log in as a portal user as an Admin you see this in the header:



 

Salesforce gives you the code to put back in the "Logout" link but we want kep the "Logged in as" message. Is the code to generate this message documented anywhere? Obviously this code contains logic that checks if you are logging in as a normal user or an Admin viewing the users permission and it also tests if you are in sanbox or not.

 

Any help would be truly appreciate. Thanks.

 

Matt King



suddenlypotatoessuddenlypotatoes

So far it appears the only two options are:

  1. recreate this information on a VisualForce page, which is displayed in an iframe (not ideal)
  2. inject these styles from the Footer "Look and Feel" template, resulting in flash of unstyled content (FOUC)

Is there any official guidance on this? Any tokens that can be parsed out?