Support » Fixing WordPress » Add styling to h2 & h3 tags in posts.

  • Hey all, I want to display some text in my posts and I need to add them inside h2 tags and some in h3 tags. Is there any way, I can add styling to that tags only for use there inside the posts and not overall in my blog ?
    I saw some blogs using code like <h2 class=”note”>Text</h2>
    But that code did nothing in my blog.
    Please help anyone

Viewing 1 replies (of 1 total)
  • I think you might have to define your custom class in your themes style sheet before it will work.

    Example:

    h2.note {
    font-weight: bold;
    color: #CECECE;
    }

    …etc

Viewing 1 replies (of 1 total)
  • The topic ‘Add styling to h2 & h3 tags in posts.’ is closed to new replies.