Create my own block-title

Posted in: Newspaper
Post count: 181

Hello,

I’m trying to create my own block-title header for a section where readers can sign up to my newsletters.

I’ve got it in an ad unit slot so it’s below my article.

The current code is:

<h4 class="block-title"><span>Sign up for our newsletters</span></h4>

This has made the title text centered and not aligned left? How can i get it to align left (like the other block titles on the page) and make the font bigger for this title only?

Thanks,

Post count: 22421

Hello,

I reccommend adding another class to the block title so you can target it with css and not affect other block titles. Something like:
<h4 class="block-title custom-class"><span>Sign up for our newsletters</span></h4>
Then you can use the custom class to style the title for example:

.custom-class h4{
float:left;
font-size:14px;
}

I hope this helps
Thank you!

  • This reply was modified 10 years by Bogdan B..
Post count: 181

My custom title is still center so the css hasn’t worked?

Inspecting the element it says:

.td-a-rec-id-post_style_12, .td-a-rec-id-content_top, .td-a-rec-id-content_bottom {
clear: both;
text-align: center;
}

How do i change this so the title aligns left?

Post count: 22421

Hello,
The classes you showed above are the ones from an ad. Not a title. Please provide a link to your website pointing to the title in question so we can inspect it and see how it is set up so we can come up with a solution.
Thank you!

Post count: 181

I’ve got my signup form in the ‘bottom ad’ section, which is why it’s probably using the css for that unit.

Is there anyway to have it aligned left?

I’ve sent you an email with my URL.

Thanks,

Post count: 22421

Hi,
I cannot see your email. Please send the email again and provide a link to this topic so we can identify the issue.
Thank you!

Post count: 181

Sent again, thanks 🙂

Post count: 22421

Replied via email.
Thanks.

Viewing 8 posts - 1 through 8 (of 8 total)
You must be logged in to reply to this topic.