- This topic has 15 replies, 5 voices, and was last updated 3 years, 7 months ago by Leo.
February 8, 2015 at 11:48 am #73433Pete Baker
I’ve just started using the GeneratePress theme and I’m loving it. I’ve bought the full add-on package but this doesn’t give me control over adding another colour to my site title. My title is ‘cycle tour store’, I would like to have ‘cycle’ in bold, ‘tour’ in the orange that I’ve used elsewhere on the site and ideally the ‘tour’ in just plain.
I was hoping to not have to get involved in code, can anyone advise.
Thanks in advanceFebruary 8, 2015 at 11:53 pm #73529TomLead DeveloperLead Developer
Unfortunately the Customizer won’t let you do specific changes to words like that, but we can do it in GP hooks.
1. First, hide the site title and tagline in the “Header Content” section of the Customizer.
2. Now go to “Appearance > GP Hooks” and open the “Before Header Content” hook.
3. Now add this HTML into the hook:
<div class="site-branding"> <p itemprop="headline" class="main-title"><a rel="home" title="Cycle Tour Store" href="Your homepage URL"><strong>Cycle</strong> <span style="color:#YOUR_COLOR_HEX;">Tour</span> Store</a></p> <p class="site-description">Your tagline if needed</p> </div>
Not codeless – but simple enough and gives you full control over each letter and word.February 9, 2015 at 9:44 am #73683Pete Baker
Thanks Tom, that’s great! Looks just as intended. Only slight problem is that it now no longer works as a link back to the home pg. Is there away to reinstate it?
PeteFebruary 9, 2015 at 10:38 am #73698TomLead DeveloperLead DeveloperFebruary 9, 2015 at 1:05 pm #73747Pete Baker
Of course! Thanks Tom. Great help.February 9, 2015 at 1:05 pm #73749TomLead DeveloperLead DeveloperSeptember 4, 2017 at 11:29 am #379038Manuel
Works really great.
Any chance to put the navbar next to it on the right?
Similar to navbar float right in GP premium?September 4, 2017 at 11:32 am #379040LeoStaffCustomer SupportSeptember 4, 2017 at 11:55 am #379058Manuel
Wow Leo, fast reply.
It doesn’t work for me.
Here is a link to my site. I want to put the menu next to “DEMO”.September 4, 2017 at 12:51 pm #379071LeoStaffCustomer SupportSeptember 4, 2017 at 12:55 pm #379074Manuel
It is. I’ve put the “site-branding” in the hook wp_head cause i want a two color Site Title.September 4, 2017 at 12:57 pm #379075LeoStaffCustomer SupportSeptember 4, 2017 at 1:08 pm #379081Manuel
Ooooh, I know.
It works. Thanks a lot 🙂September 4, 2017 at 1:26 pm #379087LeoStaffCustomer SupportOctober 7, 2018 at 9:13 am #695510Diogenes
Hello, I congratulate you for this wonderful theme.
It is possible to apply this same effect in the sticky bar (where the logo is located), I am trying it with a hook in that position, but I do not see any.
Thanks in advance.
- The topic ‘Site title – two colours and bold’ is closed to new replies.