Logo width
- This topic has 4 replies, 3 voices, and was last updated 9 years, 4 months ago by .
Viewing 3 reply threads
Viewing 3 reply threads
- You must be logged in to reply to this topic.
Home › Forums › GovIntranetters › Logo width
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?
Hey PamO,
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[0] ;
$gisw = $gislogow[1] + 10;
echo ”
#crownlink {
background: url(‘”.$gislogo.”‘) no-repeat;
background-position:left 10px;
padding: 16px 0 0 “.$gisw.”px;
height: auto;
min-height: 90px;
margin-bottom: 0.6em;
}
“;`
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 🙂
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:
#crownlogo {
padding-top: 17px !important;
}
#crownlink {
padding: 20px 0 0 60px !important;
min-height: 60px !important;
}
Cookie | Duration | Description |
---|---|---|
comment_author_email_{HASH} | Under 1 year | This is purely a convenience, so that the visitor won’t need to re-type all their information again when they want to leave another comment. |
comment_author_url_{HASH} | Under 1 year | This is purely a convenience, so that the visitor won’t need to re-type all their information again when they want to leave another comment. |
comment_author_{HASH} | Under 1 year | This is purely a convenience, so that the visitor won’t need to re-type all their information again when they want to leave another comment. |
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |
wordpress_logged_in_[hash] | Indicates when you’re logged in, and who you are, for most interface use. | |
wp-settings-{time}-[UID] | This is used to customize your view of admin interface, and possibly also the main site interface. |
Cookie | Duration | Description |
---|---|---|
_ga | 2 years | Used to distinguish users. |
_gat | 1 minute | Used to throttle request rate. |
_gid | 24 hours | Used to distinguish users. |