- This topic has 22 replies, 5 voices, and was last updated 8 years, 10 months ago by
Tom.
-
AuthorPosts
-
August 21, 2014 at 1:19 pm #16876
Katherine Scholl
Hi Tom,
Thanks for the great theme and all the plugins! I’m new to wordpress. I have activated all of your plugins as well as the custom CSS plugin you recommend, but I still can’t seem to figure out how to change the header and logo positioning.
If you could please let me know how best to place my logo to the left of the site title (instead of below) and have both the logo and site title left justified and centered vertically on the header.
Thanks for your help!
KatieAugust 21, 2014 at 2:59 pm #16904Tom
Lead DeveloperLead DeveloperHi there,
To move the image up next to the site title, you can do something like this:
.site-branding { display: inline-block; } .site-logo { float: left; margin-right: 20px; }
Centering it is kind of tricky, and doing it this way may break things if you’re using a header widget or planning on putting your navigation in the header. If you’re not doing either, you can do this:
body .inside-header.grid-container { display: inline-block; margin: 0 auto; max-width: 100%; width: auto; text-align: left; } .site-header { text-align:center; }
Hope this helps.
August 21, 2014 at 8:02 pm #16992Katherine Scholl
Thank you for the prompt response. You Rock!
I added the this code to my custom css plugin:
.site-branding {
display: inline-block;
}.site-logo {
float: left;
margin-left: 10px;
}body .inside-header.grid-container {
display: inline-block;
margin: 0 auto;
max-width: 100%;
width: auto;
text-align: left
}.site-header {
text-align:left;
}However, I still cannot seem to figure out how to vertically center the site-header text relative to the site-logo. I’ve tried a few things, but no luck. Any suggestions?
August 21, 2014 at 11:33 pm #17013Tom
Lead DeveloperLead DeveloperCan you send me a link so I can see what’s happening? Either in here or to support@generatepress.com?
Thank!
August 22, 2014 at 10:22 am #17279Katherine Scholl
August 22, 2014 at 10:24 am #17280Katherine Scholl
Oops, here’s the real link: http://www.klslawoffice.com
August 22, 2014 at 10:27 am #17281Tom
Lead DeveloperLead DeveloperHmm, try going into the Customizer and set the Header to “Center” in the Layout section.
August 22, 2014 at 10:31 am #17290Katherine Scholl
Center is checked and makes no changes if I uncheck it. It seems like whatever layout options I alter within this part of custom css, nothing changes.
body .inside-header.grid-container {
display: inline-block;
margin: 0 auto;
max-width: 100%;
width: auto;
text-align: left
}August 22, 2014 at 10:36 am #17293Tom
Lead DeveloperLead DeveloperHmm – the code is saying it’s not checked.
In your CSS, find the
.site-header {text-align:center}
entry and change it to this:header.site-header { text-align: center; }
August 22, 2014 at 10:44 am #17294Katherine Scholl
Sorry I should have clarified. I changed that because I do want the site-logo and header to be positioned to the left.
header.site-header {
text-align: center;
}Only changed the horizontal position instead of the two elements vertically relative to each other, as you will see now.
If it gets too complicated, no worries. I may be better off hiding the header text and creating an image with the logo and text I want. I suspect it will look better on mobile devices anyway and I would be able to easily position the image relative to any background image I use.
K
August 22, 2014 at 11:03 am #17311Tom
Lead DeveloperLead DeveloperAh sorry – I was completely misunderstanding.
To move the site title down so it’s vertically aligned with the logo, you could do this:
.site-branding { margin-top: 30px; }
August 22, 2014 at 11:18 am #17348Katherine Scholl
Got it. Thank you!.
August 22, 2014 at 11:26 am #17353Tom
Lead DeveloperLead DeveloperYou’re welcome – sorry for the confusion!
December 9, 2014 at 12:38 pm #53211siyuanxing9132gmail-com
Hi tom,
Could you tell me how to make the tagline below the Logo? Now I hide the site Title.
Thanks!
December 9, 2014 at 3:37 pm #53294Tom
Lead DeveloperLead DeveloperHi there,
This should help: http://generatepress.com/forums/topic/moving-site-tagline-below-logo/
-
AuthorPosts
- You must be logged in to reply to this topic.