Archived topic
Two-line Site Title
6 replies · Started by Jean Shirreffs on August 29, 2014
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
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 :)
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.
Hello
Is it possible to have an update on this now that GP Hooks is replaced by Elements?
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 :)
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
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!