Site logo

Archived topic

Embed URL in an H1 heading in page hero?

16 replies · Started by Joe on August 26, 2020

Viewing posts 1–15 of 17

Hi,

My issue is that I need to embed a URL in an H1 heading in a page hero set up in Elements. Is that possible and how do I do it? Here is the line that has the H1 heading:

<h1 style="text-align: center;"><span style="color: #ffffff;">IT'S NATURAL</span></h1>

Looking forward and hope this finds you well.

Joe

I'm going to use the HTML structure. How do I blend

<h1 style=”text-align: center;”><span style=”color: #ffffff;”>IT’S NATURAL</span></h1>

into

<h1 class="hero-heading"">IT'S NATURAL</h1>

Joe

Some code didn't copy. Let me say this again:

I’m going to use the HTML structure. How do I blend

<h1 style=”text-align: center;”><span style=”color: #ffffff;”>IT’S NATURAL</span></h1>

into
<h1 class="hero-heading"">IT'S NATURAL</h1>

Joe

Sorry. I can't get

<h1 class="hero-heading"">IT'S NATURAL</h1>

to center and be in white.

OK, I inserted the CSS. The H1 is centered but is coming up orange and then black once it is clicked.

Sorry for the confusion.

You should be able to see the website now. You may have to clear your browsing cache.

The text is centered but the color is still off using

h1.hero-heading a {
text-align: center;
}

Yes, I see. That's good.

If I need to combine all three headings into one heading that keeps the three-lined, centered format I currently have and uses one URL, how would that go?

You could use the <br> tag like this:
<h1>line 1<br>line 2<br>line 3</h1>

This archived topic is closed to new replies.