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

  1. garishwasil
    Posted 5 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. Clayton James
    Posted 5 years ago #

    I think you might have to define your custom class in your themes style sheet before it will work.


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


Topic Closed

This topic has been closed to new replies.

About this Topic