2

I spend a fair amount of time trying to update the logo for my public site. However, I was trying to edit the sitetemplate with no avail and the header.svc

Do I put this in Static resources or documents or elsewhere?

5

Follow the this tutorial

Modify the SiteHeader to display your company's logo (Logo) and use your company's stylesheet:

Click Setup | Develop | Components.

Click Edit next to the SiteHeader component.

Replace the following line:

<apex:image url="{!$Site.Prefix}{!$Label.site.img_path}/force_logo.gif"style="align: left;" alt="Salesforce"
  width="233" height="55" title="Salesforce"/>

with this new line:

 <apex:image id="logo" value="{!$Resource.Logo}"/>

The image or logo needs to be in static resource file .

If you want to change the logo in sfdc application refer this earlier answered question

  • I followed that tutorial and it's still there. I have my static resource set to public, I named it logo, I modified the header component with the apex:image tag. For some reason it's still not showing up. – tjcinnamon Mar 27 '16 at 4:46
  • Can you share screenshot? I guess you will need to create a custom sfdc app and assign a different logo and then configure that for guest user – Mohith Shrivastava Mar 27 '16 at 4:48
  • I think what is happening is my visualforce page is not using the site template. When I preview the site template by itself the logo is there. How can I use the site template on that visualforce page? – tjcinnamon Mar 27 '16 at 4:54
  • you have to say header=false in vf .whats your home page of site ? Configure Home page as your vf page – Mohith Shrivastava Mar 27 '16 at 4:55
  • 1
    this is what was needed. Thanks @mohith. <apex:page standardController="Survey__c" showHeader="false" > <apex:form > <apex:composition template="SiteTemplate"> <apex:define name="body"> – tjcinnamon Mar 27 '16 at 5:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.