Home › Forums › GovIntranetters › Logo width
This topic contains 4 replies, has 3 voices, and was last updated by Luke Oatham 2 years, 11 months ago.
We are trying to use a large logo but the logo is cut off to the left of the screen despite adjusting height and width in css. It the length is restricted somehow. How can I change this to accommodate a 90px x 220px logo?
modify the header.php as follows (around line 254):
//write custom css for logo
`$gisid = get_option(‘options_header_logo’);
$gislogow = wp_get_attachment_image_src( $gisid, ‘full’);
$gislogo = $gislogow ;
$gisw = $gislogow + 10;
background: url(‘”.$gislogo.”‘) no-repeat;
padding: 16px 0 0 “.$gisw.”px;
add ,’full’ in between the brackets on the line that starts $gislogow… this ensures that wp uses the full image size rather than a cropped thumbnail.
modify the min-height to read min-height:90px;
see how you go 🙂
Thanks for your reply. Unfortunately when I write full between the brackets the logo disappears off the screen.
Now that I know I’m in the right file, I’ll play around until I break something or make it work.
I still haven’t’ had any luck with this. Can someone point me in the right direction?
There’s an area in the Options, Style tab for custom CSS. If you change the header.php file, you risk it being overwritten by future theme updates.
You can try pasting the following into the Custom CSS area and changing the numbers to position and give space to your logo:
padding-top: 17px !important;
padding: 20px 0 0 60px !important;
min-height: 60px !important;
You must be logged in to reply to this topic.