How to add a logo to the Suite P theme (... i.e. the new compact Suite P theme)

Looking at the compact Suite P theme layout, I noticed the small “home” icon in the top-left corner which changes color when you mouse over it. I really wanted to change that icon to a logo as part of my customization process.

Using Chrome, I first inspected the css code for the icon, to see where it was being formatted within the theme’s “style.css” file. I then edited this file to find and modify the corresponding chunk of code. I changed the pathname of the two home icon graphic files (“p_icon_home.png” and “p_icon_home_hover.png”) to my “mylogo.jpg” file and tweaked the other settings,

(For some reason, I am not able to attach a screenshot to this post).

Below is the relevant section of code, AFTER my changes. (To repeat … I’m using the compact version of Suite P):

.navbar-inverse .with-home-icon {
display: inline-block;
background-image: url(’…/…/…/…/themes/SuitePImproved2/images/mylogo.jpg’);
background-position: 0px 0px;
background-repeat: no-repeat;
color: #fff;
padding: 0px;
overflow: hidden;
width: 200px;
line-height: 60px;
text-indent: -9999px;
content: ‘’
}

.navbar-inverse a:hover.with-home-icon {
background-image: url(’…/…/…/…/themes/SuitePImproved2/images/mylogo.jpg’)
}

I hope the above is useful to you. (If there are any CSS experts reading this, suggestions are always appreciated!)

I can upload a logo to Admin, System Settings, but it never gets saved. It reverts back to the logo I have in there. What am I missing here?

Besides, the logo only shows on the login screen, not on any other SuiteCRM Suite-P screen.

Any ideas?

I’m not actually using the basic Suite P theme, but the compressed modified version. However, I made the same changes to basic Suite P and they still worked.

I am getting an odd error message (image must be a .jpeg or .png) when trying to load a new image via System Settings, so I just worked around the problem. :wink:

Try this:

  1. First, ensure that your image size (for the top left corner) is small enough to fit.
  2. Copy this image file (it must be jpeg or png format!) to the images folder of the Suite P theme.
  3. Locate and change the following piece of code within your “style.css” file”, with the settings as shown. (Note: the file’s pathname is in TWO places).

[“mylogo.jpg” could be named anything you want, but obviously, the paths must match].

.navbar-inverse .with-home-icon {
display: inline-block;
background-image: url(’…/…/…/…/themes/SuiteP/images/mylogo.jpg’);
background-position: left center;
vertical-align: middle;
background-repeat: no-repeat;
color: #fff;
padding: 0px;
overflow: hidden;
width: 200px;
line-height: 60px;
text-indent: -9999px;
content: ‘’
}

.navbar-inverse a:hover.with-home-icon {
background-image: url(’…/…/…/…/themes/SuiteP/images/mylogo.jpg’)