• Resolved Eljhae

    (@eljhae)


    Hello,

    I’d like the h1 on my posts to become h2 on the homepage. This for seo reasons.
    Would that be possible ?

    Thanks in advance.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Theme Author Ben Sibley

    (@bensibley)

    Sure, this can be done with a child theme. You’ll want to copy the content.php file from Tracks into your Tracks child theme. Then you can change the <h1> tags to <h2> tags in the content.php file located in your child theme,

    Thread Starter Eljhae

    (@eljhae)

    Hi Ben,

    This is what I did but it doesn’t work (changed line 7 ):

    <div <?php post_class(); ?>>
    <?php ct_tracks_featured_image(); ?>
    <div class=”entry-meta”>
    <?php get_template_part(‘content/post-meta’); ?>
    </div>
    <div class=’entry-header’>
    <h2 class=’entry-title’><?php the_title(); ?></h2>
    </div>
    <div class=”entry-container”>
    <div class=”entry-content”>
    <article>
    ……

    Could you please let me know if I did something wrong ?

    Thanks,

    Eljhae

    Theme Author Ben Sibley

    (@bensibley)

    Hi Eljhae,

    The file structure of Tracks has changed a bit since my last post. Instead of copying over the content.php file, copy the “content-archive.php” file.

    Then, you can change the h1 element on line 13 to an h2 element.

    Thread Starter Eljhae

    (@eljhae)

    Great, it’s working.

    Thanks a lot for your support.

    Have a nice day.

    Theme Author Ben Sibley

    (@bensibley)

    No problem, glad I could help 🙂

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘H1 becoming H2’ is closed to new replies.