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
User SethUser Seth 

How to increase the Size of Company Logo

What is the best to increase the Size of Car in this Experience Cloud
User-added image
PriyaPriya (Salesforce Developers) 
Hey 

Kinldy refer this :- https://salesforce.stackexchange.com/questions/131986/change-salesforce-logo-on-lightning
 

Kindly mark it as the best answer if it works for you.

 

Thanks & Regards,

Priya Ranjan


 
User SethUser Seth
Hi Priya 
Not in Salesforce I want to increase it in Experience Cloud Site
PriyaPriya (Salesforce Developers) 
Ok got it.

The way this template is set it up it's not as easy to make the logo bigger as it is with other templates.

Here's the code to target the size of that logo (and it is showing the current width and height set by Salesforce:
 
.siteforcePrmBody .cHeader .cBrandingLogo {
    width:90px !important;
    height:36px !important;
}


So what you will want to do is change the width number or height number to be a bit bigger. Be careful with this though because if you make the logo really tall (like a height of 100px) it's going to mess up the entire header. The height of the header will not grow in order to fit the size of the logo. I would honestly recommend that you don't make it any bigger than like 45px height at the most. 
 
The !important code is needed in there as well to override the height that is set by Salesforce.

Reference link :- 
1. https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000JeIvCSAV

2. https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000Kea6ESAR

 

Kindly mark it as the best answer if it works for you.
 
Thanks & Regards,
Priya Ranjan