Home Forums Support Two-line Site Title

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #20929
    Jean Shirreffs

    Tom, I don’t suppose that it will ever be possible to do a Site Title with more than one line – I am doing a website for my Church and their site title/slogan at the top is on two lines. At the moment I got round the problem by creating an image instead (which includes the logo) and I am using that instead of a Site Title – but that solution is not ideal.

    I have done a mock-up of the Church’s website on a spare website that I have (my own actually). The url of that website is : http://sew-me-how.com (if you want to see what I mean about needing a two line Site Title). Ideally, I would like their logo to be separate from the Site Title.

    Jean Shirreffs

    #21018
    Tom
    Lead Developer
    Lead Developer

    Hi Jean,

    There’s a couple options.

    1. You can use the tagline as the second line – and style it to look the same using the Typography addon.

    2. Hide the site title and tagline in the Customizer, then add the following to the “Before Header Content” hook in GP Hooks:

    <div class="site-branding">
        <p itemprop="headline" class="main-title"><a rel="home" title="Your Title" href="http://yourdomain.com">Your first line of the title <br /> Your second line of the title</a></p>
    </div>

    Let me know if that makes sense or not ๐Ÿ™‚

    #21158
    Jean Shirreffs

    Hi Tom,

    Thanks for your very prompt reply – I shall experiment with the solutions that you have suggested and let you know sometime how I got on.

    Jean S.

    #1070301
    Camille

    Hello
    Is it possible to have an update on this now that GP Hooks is replaced by Elements?

    #1070321
    Leo
    Staff
    Customer Support

    Hmm it should be basically the same.

    The HTML would remain the same. And just select before_header_content hook in hooks element:
    https://docs.generatepress.com/article/hooks-element-overview/

    Let me know if you are having any issues ๐Ÿ™‚

    #1196595
    Giselle

    Hi,

    I tried this and got the site titel to show, but I also have a logo added from the customiser and want the site title to appear next to it (as it does if using the Site Title field). Can I do this using hooks?

    Thanks,

    Giselle Leeb

    #1196819
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Any chance you can create a new topic (this one is very old), and include the URL to your site so we can take a look?

    Thanks!

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.