Which bit of HTML should I remove?

Discussion in 'HTML & Website Design' started by CarlBlogger, Mar 7, 2013.

  1. #1
    Hello all,

    I'm just tweaking my WordPress theme and I'm trying to remove the "Category Archives: TV" header at the top of this category.

    http://jmpressplay.com/category/tv/

    I am being really slow because I can't find which bit to remove or what CSS to add to hide that? Thanks!
     
    CarlBlogger, Mar 7, 2013 IP
  2. kajakske

    kajakske Well-Known Member

    Messages:
    139
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    165
    #2
    That's actually your H1 tag ... Why would you want to remove that?
    This might get SEO complications (no H1 tag = bad).

    Just search the code for <h1> and delete it.
    If you want to hide it in CSS
    h1 {
    display: none;
    }
    will do it for all pages.

    Still weird to do it though ...
     
    kajakske, Mar 7, 2013 IP
  3. CarlBlogger

    CarlBlogger Well-Known Member

    Messages:
    516
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    130
    #3
    I only want to do it for that individual page. I don't particularly want to do it for all of them. Any way just to do it for that particular page that is displaying?

    Or maybe just remove the 'Category Archives' part of the header as it is being used as a landing page for something and looks a bit untidy...
     
    CarlBlogger, Mar 7, 2013 IP
  4. blackthought286

    blackthought286 Well-Known Member

    Messages:
    334
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #4
    If it is a WordPress Theme you can go to archive.php (for most themes) or category.php and change it there. You will find it around if(is_category()) printf(_(Category Archives: %s)). Just change that Category Archives portion to say what you want it to say. Or nothing at all.
     
    blackthought286, Mar 7, 2013 IP
  5. CarlBlogger

    CarlBlogger Well-Known Member

    Messages:
    516
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    130
    #5
    Doesn't seem to be in the archive.php page because it's the Skeleton Wordpress Theme. Anyone worked with that before and can find it within those files? I have tried.
     
    CarlBlogger, Mar 7, 2013 IP
  6. blackthought286

    blackthought286 Well-Known Member

    Messages:
    334
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #6
    Looking at their github skeleton WP theme entry it is in category.php. The line needed is 16 printf(_('Category Archives: %s', 'skeleton')) . Here is the link to what I am looking at https://github.com/simplethemes/skeleton_wp/blob/master/skeleton/category.php
     
    blackthought286, Mar 7, 2013 IP
  7. jorgepson

    jorgepson Active Member

    Messages:
    103
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    73
    #7
    I agree, H1 tag plays an important role in SEO so removing this H1 might have a negative effect to your SERP Rankings
     
    jorgepson, Mar 7, 2013 IP
  8. wiicker95

    wiicker95 Well-Known Member

    Messages:
    438
    Likes Received:
    37
    Best Answers:
    10
    Trophy Points:
    100
    #8
    Not that I want to be rude or anything, but there's no valid reason for that h1 to be h1 in the first place. In sematics' perspective, it's clearly an h2, preceded by properly formed and omnipresent h1.

    Secondly, these "Tweet me", "Like me on Facebook" headings should also be h2, and NOT h3. Being smaller does not necessarily mean less important - the HTML is there to determine what things are, not how they look like. If you're choosing tags (well whoever made that theme) based on their default appearance, you're choosing all the wrong tags.

    Don't even get me started on that conditional html ie class idiocy (kudos Paul Irish), that has no business in ANY website out there. I suggest you to get rid of that markup you have and start all over. Removing the "Category Archives: TV" is, honestly, not enough.
     
    wiicker95, Mar 7, 2013 IP