- This topic has 15 replies, 3 voices, and was last updated 7 years, 2 months ago by
Tom.
-
AuthorPosts
-
January 22, 2015 at 1:52 pm #67819
Peter
Hello, I have a child theme to GP called Freelancer. I’ve added a logo to the header using the theme’s controls, but I would like to position the logo from its default position below the header text to the right of the text. How do I go about doing this?
January 23, 2015 at 12:56 am #67905Tom
Lead DeveloperLead DeveloperHi there,
Try this CSS:
.site-logo, .site-branding { display: inline-block; vertical-align: middle; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentJanuary 23, 2015 at 12:14 pm #68108Alison
Hi Tom,
I’m also trying to do the same thing as the original poster. I added the CSS you gave to the child theme, but it didn’t change anything. I also tried adding it via a custom CSS plugin (in case that is actually where it is supposed to go…), but it still didn’t do anything. Should I be doing something else?
Thanks for the help.
January 23, 2015 at 2:26 pm #68135Tom
Lead DeveloperLead DeveloperCan you link me to the site you’re using that CSS on so I can make sure it’s been added correctly?
Thanks! π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentJanuary 23, 2015 at 2:46 pm #68142Alison
Sure thing, it is http://nifti.washington.edu/. For good measure, I added the CSS to both the child theme and the custom CSS plugin.
Thanks for the help!
January 23, 2015 at 2:57 pm #68164Peter
Hey Tom, that worked. Thank you!
Now, how do I move the logo to the right of the page?
January 23, 2015 at 2:58 pm #68166Peter
wordraft.com
January 24, 2015 at 10:30 am #68343Tom
Lead DeveloperLead Developer@Alison, it’s not working for you because your site title is super long – there’s no room for the logo to sit next to it.
@Peter, if you want the logo to the far right, you can replace the CSS with this:.site-branding { display: inline-block; vertical-align: middle; } .site-logo { float: right; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentJanuary 24, 2015 at 6:54 pm #68521Peter McMinn
Very much appreciated. Thanks Tom!
January 25, 2015 at 12:03 am #68556Tom
Lead DeveloperLead DeveloperYou’re welcome π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentJanuary 26, 2015 at 9:49 am #68934Alison
Ah, that makes sense. I thought that perhaps the text in the title would wrap.
I’m actually aiming for what Peter was also doing – having the logo to the far right. Is there a way I can force the text of the title to wrap? I tried including a
<br>
in the title, but it just printed that along with the rest of the title.Thanks for the assistance!
January 26, 2015 at 11:05 am #68984Tom
Lead DeveloperLead DeveloperHmm, you could always reduce the text size of your site title?
You could also try something like this:
.site-branding { max-width: 70%; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentJanuary 27, 2015 at 9:58 am #69248Alison
That new CSS worked perfectly!
Thank you for your help!
January 27, 2015 at 10:20 am #69264Tom
Lead DeveloperLead DeveloperYou’re welcome π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentMarch 17, 2015 at 5:17 pm #87999Jamie
Is there a way to flip the Title and Logo positions? I know I can move the logo to the left or right of the title, but would like to see it above. Help! =)
westsidemutual.com -
AuthorPosts
- You must be logged in to reply to this topic.