Home Forums JustWrite Free How can I make the post title in H1 instead of H2 tag?

Tagged: 

This topic contains 7 replies, has 3 voices, and was last updated by  maxkod 7 months, 1 week ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #4818

    Dhiraj
    Participant

    Hi There.

    Is there any way out to make the blog title post in H1 tag instead of the default H2?

    #4829

    maxkod
    Participant

    Hi, I need the same thing. Waiting for your answer! Thank you.

    • This reply was modified 7 months, 2 weeks ago by  maxkod.
    #4831

    maxkod
    Participant

    Hi, I found one your old answer:
    Hi! It’s also bad for SEO to have multiple H1 tags on the homepage. If you want to change for single view (article) you will need to open ../post-templates/content-single.php, find:
    <?php the_title( ‘<h2 class=”title”>’, ‘</h2>’ ); ?>
    replace with: <?php the_title( ‘<h1 class=”title”>’, ‘</h1>’ ); ?>
    As for the logo, you will need to open header.php, find:
    <div class=”logo<?php ac_logo_class(); ?>”> and </div><!– END .logo –>
    replace div with h1 or h2

    but I’m didn’t find <?php the_title( ‘<h2 class=”title”>’, ‘</h2>’ ); ?>
    in /post-templates/content-single.php

    I found it in /post-templates/content.php
    <?php the_title( ‘<h2 class=”title”>‘, ‘</h2>’ ); ?>

    Can I replace h2 with h1 here?

    My site in http://www.motocrossaddiction.com
    Thnak You.

    #4838

    admin
    Keymaster

    Open functions.php and do a search/replace for the_title( '<h2 class="title">', '</h2>' ); with the_title( '<h1 class="title">', '</h1>' );

    #4840

    Dhiraj
    Participant

    I found it in /post-templates/content.php
    <?php the_title( ‘<h2 class=”title”>‘, ‘</h2>’ ); ?>

    Can I replace h2 with h1 here?

    Nah, if you make this change, it will just wrap the blog title in H1 tag in the index/homepage of the website. The original blog title post will still be in H2.

    #4841

    Dhiraj
    Participant

    Thanx Admin, its done !

    #4843

    maxkod
    Participant

    Hi, thank you for your replies.

    For Admin: I replace h2 with h1 in ../post-templates/layouts/layout-cover.php and it works.
    Is it the same of replacing the_title( ‘<h2 class=”title”>’, ‘</h2>’ ); with the_title( ‘<h1 class=”title”>’, ‘</h1>’ )

    or it’s better to modify functions.php and let layout-cover.php with h2 tags?
    Regards.
    Max

    #4869

    maxkod
    Participant

    Any update on my last question? Thanks

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

You must be logged in to reply to this topic.