Grow your CSS skills. Land your dream job.

Blogging and H3 tag

  • # October 24, 2012 at 2:35 am

    I have a Tech Blog [Techbymak](http://www.techbymak.com “Techbymak-A best Tech Blog 2013″) and I am using it on the Blogger platform.

    http://www.techbymak.com

    I am facing the Problem that I want Single H1 tag on the each page which is successfully Applied on the Main Index page But as I open any Blog post then the Title of the Post Remains H3 and If I tries to make it H1 then the All the posts on the Indexed page contains mulitple H1 tags.

    # October 24, 2012 at 3:41 am

    If I understand well your post, you want to set different markup to the same content according the page you’re on? It seems pretty useless to me.

    I’d tell you 2 things:
    – According to Google itself through Matt Cutts, having multiple h1 tags is not a problem anymore in HTML5 (Source: http://www.seomoz.org/q/html5-multiple-h1-tags)
    – What’s wrong with h3 tags? In any case, push them to h2 or something if you really want to keep only one h1 element.

    # October 24, 2012 at 5:26 am

    Deleted my previous comment.

    I don’t see any way of doing this. Certainly you could, I believe change the blog template so that the Title is an H1 tag rather than an H3 but you can’t dynamically (magically) switch it to an H3 for the ‘index’ (post-list) page.

    # October 24, 2012 at 6:04 am

    Is this for styling purposes? As in to make it bigger/smaller?

    What you could do is have a body class and then apply styling saying like .body-class h3 {style here} and then .alternative-body-class h3 {style here}

    If it’s not for styling maybe JQuery find and replace?

    # October 24, 2012 at 6:13 am

    You can’t assign a body class to a template in Blogger (AFAIK) as it will apply to ALL pages.

    The ‘index’ page is just the ‘same’ page but with more entries.

    What I’m saying (from my limited knowledge) is that there isn’t a ‘feed’ template and an individual ‘post’ template.

    Again, AFAIK.

    # October 24, 2012 at 6:14 am

    Ah right, I’m not familiar with the blogging platform.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".