WordPress.org

Ready to get started?Download WordPress

Forums

Add styling to h2 & h3 tags in posts. (2 posts)

  1. garishwasil
    Member
    Posted 3 years ago #

    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

  2. ClaytonJames
    Member
    Posted 3 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags