• Hi

    I’ve been using this amazing theme for a few months. I noticed the related post created below the content the titles are h2. I want to change it for an h5 for SEO matters.

    I looked into the functions.php but I cannot change the <h2class=”archive-post-title”> that wrap the post title

    Any help would be appreciated.

    Thanks

Viewing 1 replies (of 1 total)
  • Theme Author Anders Norén

    (@anlino)

    Hi @alemarcos,

    Glad you like it!

    The related posts are output with the content.php template file – same as the posts on the archive pages. In other words, changing the markup in that template file will affect all archive pages as well.

    You could copy the content.php file to a child theme, rename it (to related-post.php, for example), add a functions.php file to the child theme, copy the function hitchcock_related_posts() and paste it in the file, and change the line get_template_part( 'content', get_post_format() ); to get_template_part( 'related-post' );. Any changes you then make to the file related-post.php in your child theme will only affect the related posts section.

    Note that any changes you make directly to the code of Hitchcock itself will be overwritten the next time the theme is updated, which is why it’s best to use a child theme for modifications.

    — Anders

Viewing 1 replies (of 1 total)
  • The topic ‘Related post title h2’ is closed to new replies.