Site logo

Archived topic

how can I add to H1 in my page hero?

19 replies · Started by eran on October 17, 2022

Viewing posts 1–15 of 20

HI,
I have a Header element for the homepage, and I was wondering how I can add <br> to the H1 in my page hero?

Hi there,

Are you using the {{post_title}} template tag?

If so, you just need to change it to <b>{{post_title}}</b>.

Yes,
I'm using {{post_title}}.
I want to break the sentence with <br>
how can I do that?

Oh sorry, I misunderstand your question.

Do you want to break the title into 2 lines? Will this header element apply to multiple pages or just front page?

If just the front page, you don't need to use the template tag, you can directly enter the title, eg.
<h1>Best Streaming Equipment<br> for Twitch Streamers</h1>

But now I have 2 H1.

Nevermind I fixed it.
i delete the h1 from the article

:)

Now I see In my footer (on all the pages except the front page) In the Review section.
Because I delete the H1 from the front page the query loop doesn't have H1 from the dynamic data.

I add picture in the private message.

How can I fix this?

Why did you delete the H1 from the article? I'm confused.

Because I have the H1 from my header Block (on the front page)

Not sure why it's related to the post title... the page hero on your homepage is using a static html title.

What's gonna happen if you add the post title back?

Then I won't be able to use <br>
This is why I use this "<h1>Best Streaming Equipment<br> for Twitch Streamers</h1>"

I don't understand.. why wouldn't you be able to use <br>?

If you add the post title back, the page hero should remain the same, no?

I have added the post title now.
You can see now that the sentence doesn't break at all.
And I cant add <br> to it.

How can I add <br> to my homepage title?

This archived topic is closed to new replies.