[Resolved] Site title – two colours and bold

Home Forums Support [Resolved] Site title – two colours and bold

Home Forums Support Site title – two colours and bold

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #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 advance

    #73529
    Tom
    Lead Developer
    Lead Developer

    Hi 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.

    #73683
    Pete 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,
    Pete

    #73698
    Tom
    Lead Developer
    Lead Developer

    Hi Pete,

    Look for this part of the code: href=”Your homepage URL”

    You want to add your URL in there.

    #73747
    Pete Baker

    Of course! Thanks Tom. Great help.

    #73749
    Tom
    Lead Developer
    Lead Developer

    You’re welcome πŸ™‚

    #379038
    Manuel

    Works really great.
    Any chance to put the navbar next to it on the right?
    Similar to navbar float right in GP premium?

    #379040
    Leo
    Staff
    Customer Support
    #379058
    Manuel

    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”.

    #379071
    Leo
    Staff
    Customer Support

    You need to set the navigation location to float right first.

    #379074
    Manuel

    It is. I’ve put the “site-branding” in the hook wp_head cause i want a two color Site Title.

    #379075
    Leo
    Staff
    Customer Support

    Try the before header content hook as Tom suggested instead.

    #379081
    Manuel

    Ooooh, I know.
    It works. Thanks a lot πŸ™‚

    #379087
    Leo
    Staff
    Customer Support

    No problem πŸ™‚

    #695510
    Diogenes

    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.

Viewing 15 posts - 1 through 15 (of 16 total)
  • The topic ‘Site title – two colours and bold’ is closed to new replies.