1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Duplicated h1 and h2 tags

Discussion in 'CSS' started by Divvy, Nov 8, 2015.

  1. #1
    Hello guys,

    Can someone please help me?
    I have crawl my website and notice that I have lots of h1 and h2 duplicated tags.
    Screenshot: http://i.imgur.com/OBntAtC.png

    H1 duplicated: 444 (of 524)
    H2 duplicated: 524 (of 524)

    After I check my homepage, I have notice the following:
    - h1 tag in my website title, that is correct.
    - lots of h1 tags in my category names, example: http://i.imgur.com/z4IBCI5.png

    What I need is to replace those h1 tags in my category names with h3 tags. I know how to do that, but I don't want to break my website layout...
    Screenshot: http://i.imgur.com/xzrexZn.png

    My CSS file: http://paste2.org/aCvfE3DL

    Can someone help me with this?
    If I replace h1 with h3 in category titles, my website layout breaks... the background image disappears, etc...

    As for h2 duplicated tags, Im still looking where the problem is... I still cant find it.

    Waiting for your help guys, thanks :)
     
    Divvy, Nov 8, 2015 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    You need to edit the css to reflect the altered markup. h1 {...} does not affect the h2 element.

    cheers,

    gary
     
    kk5st, Nov 8, 2015 IP
  3. qwikad.com

    qwikad.com Illustrious Member Affiliate Manager

    Messages:
    7,151
    Likes Received:
    1,656
    Best Answers:
    29
    Trophy Points:
    475
    #3
    It could be that something is looping your h tags or you have a foreach or something similar.

    As far as your h3 tag are you sure it had a closing tag? It could be that you tested your page with h1 then changed it to h3 but your closing tag was still h1. Hard to tell without seeing your actual page / css.
     
    qwikad.com, Nov 8, 2015 IP
  4. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,998
    Best Answers:
    253
    Trophy Points:
    515
    #4
    My question remains (as I asked in our PM conversation) what "tool" are you "crawling" that with giving you said result? As headings across pages shouldn't be tripping duplicate warnings in anything meaningful, and I very much doubt you have 524 h1 on a single page.

    Generally speaking I suspect whatever tool you are using is so full of manure Biff Tannen would crash his '48 Ford Super De Luxe into the back of it.
     
    deathshadow, Nov 9, 2015 IP