Line break in page/site title
-
Hello,
I’m hoping to get some assistance regarding my page/site title. I have a site title that is used at the top of every page, that acts as a link back to the homepage.
I am wanting to add a line break (actually 2) into the title so that I can format it to look a certain way. My hope is that adding the line breaks will help me control to some degree, which words are on each line of the title, when displayed on desktop, tablet and phone. I hope that makes sense! I’m super new to all of this so I’m learning as I go.
If you go to my site that I’ve linked you can see that the site title reads (on desktop):
INSPIRED BY THE
WORLD DECOR &
DESIGN
I’d prefer to add some line breaks so that it reads:INSPIRED BY
THE WORLD
DECOR & DESIGN
I know it will change for tablet and phone but I still think it would look better.
I’ve tried using the Page Title Splitter plugin and just couldn’t get it working at all. I also tried to use the code below, putting it into this part (functions.php.) of the Blockbase code, and again nothing happened. When I added [br] or <br> to the site title text you could see that text, not a line break.function line_break_shortcode() {
return ‘<br />’;
}
?add_shortcode( ‘br’, ‘line_break_shortcode’ );
I’m not sure if I’m just making a silly mistake or missing something completely. As I mentioned, this is the first time I’ve ever tried anything like this and I’ve now spent sooo many hours just trying to add a line break! Any help would be greatly appreciated!
Thank you in advance!The page I need help with: [log in to see the link]
- The topic ‘Line break in page/site title’ is closed to new replies.