- This topic has 16 replies, 2 voices, and was last updated 6 years, 7 months ago by
Uwe Pfeifer.
-
AuthorPosts
-
August 12, 2016 at 10:37 am #217711
Uwe Pfeifer
Hi. How can I make a logo appear to the left of the site tag line and website header title?
August 12, 2016 at 10:38 am #217712Uwe Pfeifer
I would like to make the logo adopt to size of the header, but not put it below the header.
August 12, 2016 at 10:58 am #217723Uwe Pfeifer
Hm, I played around a bit, and i got this:
.site-branding {
display: inline-block;
}.site-logo {
float: left;
margin-right: 20px;
height: 128px;
width: 128px;
}But now the image has a distance from the borders of the header (white part) adn i dont like that. id like to have the logo all over the header in height. is that achievable?
August 12, 2016 at 11:11 am #217733Uwe Pfeifer
I really love GeneratePress. π
August 12, 2016 at 11:36 am #217737Uwe Pfeifer
i guess else i gotta put the logo inside a header png and put that one up.
August 12, 2016 at 7:57 pm #217780Tom
Lead DeveloperLead DeveloperBut now the image has a distance from the borders of the header (white part) adn i dont like that. id like to have the logo all over the header in height. is that achievable?
I’m not too sure what you mean by that.
Any examples?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentAugust 12, 2016 at 8:41 pm #217791Uwe Pfeifer
I don’t have any examples. what i mean is the top and bottom border of the logo. i think its the padding. can i expand the logo even over the padding without the site title to lose the vertical centering? i mean it should loook like this
_____________________________________________
| LOGO
| LOGO SITE TITLE & SITE TAGLINE
| LOGO
———————————————
|
|Where as the logo shouldnt need to be only a few pixel big without resizing the header. And I mean LOGO is just 1 Logo not the logo repeated or anything.
Is this clearer?
Thank you!
freaky.
August 13, 2016 at 12:12 am #217814Tom
Lead DeveloperLead DeveloperNot sure I’m completely clear..
You can reduce the padding on top and bottom of the header in “Customize > Layout > Header”.
Then upload your logo at whatever size.
To vertically center the site title to the logo, you can do something like this:
@media (min-width: 769px) { .site-branding { margin-top: 20px; } }
Adjust the 20px as needed.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentAugust 13, 2016 at 12:59 am #217825Uwe Pfeifer
ok thanks. can i also somehow center the logo between the left navigation bar? so its above the middle of the left navigation bar?
thanks !!
August 13, 2016 at 9:08 am #217902Tom
Lead DeveloperLead DeveloperI’m not sure what you mean? Examples always help π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentAugust 13, 2016 at 10:11 am #217931Uwe Pfeifer
_____________________
| <– this centered in the middle above
_____________________| | <– this bar
| |
| |
| |
| |
| |I tried margin-left: 40px; it looks like its int he middle now though.
August 13, 2016 at 10:14 am #217934Uwe Pfeifer
oh it doesnt keep spaces. π well i dont know if theres any better way than margin-left: 40px of the site-logo css.
August 13, 2016 at 11:05 pm #218011Tom
Lead DeveloperLead DeveloperI’m afraid I’d actually have to see it on a website to know exactly what you mean.
If you have any example sites let me know and I should be able to help =)
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentAugust 13, 2016 at 11:22 pm #218012Uwe Pfeifer
the site is http://teamunity.unityhub.eu
August 13, 2016 at 11:25 pm #218013Uwe Pfeifer
I did this now:
.site-branding {
display: inline-block;
}.site-logo {
float: left;
margin-right: 20px;
margin-left: 40px;
height: 192px;
width: 192px;
}
@media (min-width: 769px) {
.site-branding {
margin-top: 40px;
}
} -
AuthorPosts
- You must be logged in to reply to this topic.