- This topic has 15 replies, 5 voices, and was last updated 3 years, 7 months ago by
Leo.
-
AuthorPosts
-
February 8, 2015 at 11:48 am #73433
Pete Baker
Hi,
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 #73529Tom
Lead DeveloperLead DeveloperHi Pete,
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.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentFebruary 9, 2015 at 9:44 am #73683Pete Baker
Hi,
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?
Thanks again,
PeteFebruary 9, 2015 at 10:38 am #73698Tom
Lead DeveloperLead DeveloperHi Pete,
Look for this part of the code: href=”Your homepage URL”
You want to add your URL in there.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentFebruary 9, 2015 at 1:05 pm #73747Pete Baker
Of course! Thanks Tom. Great help.
February 9, 2015 at 1:05 pm #73749Tom
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-developmentSeptember 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 #379040Leo
StaffCustomer SupportTry this: https://generatepress.com/forums/topic/menu-next-to-logo/#post-241435
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 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 #379071Leo
StaffCustomer SupportYou need to set the navigation location to float right first.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 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 #379075Leo
StaffCustomer SupportTry the before header content hook as Tom suggested instead.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 4, 2017 at 1:08 pm #379081Manuel
Ooooh, I know.
It works. Thanks a lot πSeptember 4, 2017 at 1:26 pm #379087Leo
StaffCustomer SupportNo problem π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 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.
-
AuthorPosts
- The topic ‘Site title – two colours and bold’ is closed to new replies.