How to add h1 tag to wordpress (problem)

Discussion in 'CSS' started by trimchic, Aug 16, 2011.

  1. #1
    Hi everyone, heard about the importance of using h1 tags in wordpress, and decided to give it a try, but realised that anytime i put a h1 tag, the whole post size increases no matter what i do. help me pls
     
    Solved! View solution.
    trimchic, Aug 16, 2011 IP
  2. #2
    that is normal, the h1 tag has a font-size already built in.

    you should override the browser default by putting the

    h1{font-size:12px;font-weight:normal !important}


    in a css file in your site. change the "12px" to whatever size is the text originally, i think "font-size:inherit" may work as well but im not too sure
     
    gibigbig, Aug 16, 2011 IP
  3. trimchic

    trimchic Active Member

    Messages:
    142
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    53
    #3
    Tried that it didnt work
     
    trimchic, Aug 16, 2011 IP
  4. Bapinder

    Bapinder Well-Known Member

    Messages:
    151
    Likes Received:
    7
    Best Answers:
    3
    Trophy Points:
    120
    #4
    Could you give us the link. Make sure you close the h1 tag with </h1>
     
    Bapinder, Aug 16, 2011 IP
  5. trimchic

    trimchic Active Member

    Messages:
    142
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    53
  6. trimchic

    trimchic Active Member

    Messages:
    142
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    53
    #6
    Thank you, it has been solved, i used your code in the weaver admin section instead of css file. thanks a lot
     
    trimchic, Aug 16, 2011 IP