Jump to content
Sign in to follow this  
DanPepper

What is CSS code to make blog post titles H1?

Recommended Posts

DanPepper

Hi guys What CSS code do I need in order to make my blog post titles automatically become encoded as H1 every time I post?

Share this post


Link to post
Share on other sites
Andrew

That's not something you can do directly w/ CSS.. Did you want to do it for visual or functional reasons (e.g. SEO)?

Share this post


Link to post
Share on other sites
scotmanfrontiernetnet

You can use html within your title when you create the post in WorPress. Meaning use h1 tags when you create the article,it will give you the desired effect your looking for. e.g.

<h1> test post</h1>

Share this post


Link to post
Share on other sites
bryan-hadaway

My guess would be that you're looking to do this because you'd like to have bigger headlines? If it's for SEO you should know this will actually hurt, not help. They should be h2, but what you'll want to do is style the h2 tags with CSS: `#maincontent h2{font-size:30px}` You'll want to paste that in your Custom CSS field under Custom Code in your Theme Options. You'll want to adjust 30 higher or lower until you have what you want. Thanks, Bryan

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×