- This topic has 6 replies, 6 voices, and was last updated 11 months, 2 weeks ago by
Tom.
-
AuthorPosts
-
August 29, 2014 at 4:26 am #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
August 29, 2014 at 8:52 am #21018Tom
Lead DeveloperLead DeveloperHi 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 π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentAugust 29, 2014 at 1:03 pm #21158Jean 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.
November 21, 2019 at 5:36 am #1070301Camille
Hello
Is it possible to have an update on this now that GP Hooks is replaced by Elements?November 21, 2019 at 5:47 am #1070321Leo
StaffCustomer SupportHmm 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 π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/March 16, 2020 at 10:02 am #1196595Giselle
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
March 16, 2020 at 4:07 pm #1196819Tom
Lead DeveloperLead DeveloperHi 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!
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-development -
AuthorPosts
- You must be logged in to reply to this topic.