- This topic has 14 replies, 5 voices, and was last updated 7 years, 4 months ago by
Rogier.
-
AuthorPosts
-
July 30, 2014 at 4:08 pm #8039
Tom
I’m new to wordpress, but I love the control that this gives with the plug-ins. However, I would like to know if there is a simple way to flip the logo and the tagline. When I hide the site title, because I’d rather use our logo for the site title, the tagline is great, but it shows up above the logo. There has to be some way to switch them; I’m willing to go into the .php if it is required, but I’d prefer some option available in the plugins. Either way, let me know how I can swing it. Thanks for a great theme!
July 30, 2014 at 6:05 pm #8117Tom
Lead DeveloperLead DeveloperHi there,
Have you by chance purchased GP Hooks? If so, the solution is super simply.
If not I’ll have to provide some code for you 🙂
Let me know,
TomJuly 31, 2014 at 9:44 pm #8459Tom
I have all the add-ons. I should have said that, sorry. I have been looking into hooks, and it looks very powerful, but I don’t even understand the Core very well yet, so I’m afraid of breaking things. Plus, I am trying to get a website with four sub-domains, so what I change needs to work and be replicatable.
Anyway, I have Hooks, so what code do I put in the pre_head, or one of those?
Thanks
August 1, 2014 at 12:17 am #8464Tom
Lead DeveloperLead DeveloperGreat!
First, turn off the tagline in the Customizer and save.
Then go to GP Hooks and add this inside the Before Header Content hook:
<p class="site-description">Your tagline here</p>
This should place your tagline above your logo.
Hope this helps 🙂
TomAugust 12, 2014 at 3:18 pm #11948rex wickham
Hi
I’d like to place the logo on the right side of the page like this: http://ibin.co/1WcKZaXZ8hYKI achieved the style linked there by using the Text widget in the header image. However, I don’t like the way the tag/description are right at the top of the page. I’d prefer it vertically centrally.
Could you share some advice on adjusting the spacing or as previously described in this post, moving the position of the logo (so not needing to use a widget)
August 12, 2014 at 3:20 pm #11949Tom
Lead DeveloperLead DeveloperYou could do something like this:
.site-branding {margin-top:50px;}
Then adjust the 50px until you reach your desired spacing.
Let me know if that achieves what you’re looking for 🙂
Tom
August 12, 2014 at 3:25 pm #11953rex wickham
Thanks, that makes sense.
Should that CSS be entered somewhere within your theme settings?
August 12, 2014 at 3:45 pm #11987Tom
Lead DeveloperLead DeveloperIf you’re not using a child theme, I suggest a plugin this like: https://wordpress.org/plugins/simple-custom-css/
September 1, 2014 at 7:35 am #22627Ton van der Valk
Hi Tom,
I followed your advice to move the logo to the right side of the header.
However this code.site-branding {margin-top:50px;}
only creates a space on the top margin.Do you have another suggestion to move the logo?
Thanks!
Ton
September 1, 2014 at 8:47 am #22666Tom
Lead DeveloperLead DeveloperHi Ton,
So you’re wanting the logo on the right side of the header, and your site title/tagline on the left?
September 1, 2014 at 9:21 am #22667rex wickham
Ton- We did something similar at http://www.ginteriors.uk/ I think – does that look like what you wanted?
October 22, 2014 at 3:15 pm #41007Elwin Hoover
How do you get the tagline underneath the logo?
October 22, 2014 at 4:48 pm #41055Tom
Lead DeveloperLead DeveloperYou would have to use GP Hooks.
First, you would hide the tagline using the Customizer (Appearance > Customize > Header Content”.
Then, go into GP Hooks, and add this in the “After Header Content” hook:
<p class="site-description">Your tagline here</p>
October 23, 2014 at 4:07 pm #41334Elwin Hoover
Thank you, Tom!
November 23, 2017 at 7:14 am #431592Rogier
if ( ! function_exists( 'generate_header_items' ) ) { function generate_header_items() { // Site logo generate_construct_logo(); // Site title and tagline generate_construct_site_title(); // Header widget generate_construct_header_widget(); } }
-
AuthorPosts
- You must be logged in to reply to this topic.