Home Forums Basel support forum Change Posts Headers from H3 to H1

Change Posts Headers from H3 to H1

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #248985

    oleg_dmitriev
    Participant

    Hi Elise,
    for SEO, I need my “Posts” page (https://www.independent.wine/wine-news-and-blog/) to have H1 heading. In the theme, the Header class is set to H3.
    How can I change it to H1? The theme does not allow me to add a custom h1 text via page builder.

    Now:
    <header class=”entry_header”>
    <h3 class =”entry-title”>Wine news & blog</h3>

    I need:
    <header class=”entry_header”>
    <h1 class =”entry-title”>Wine news & blog</h1>

    I am happy to edit php, just want to double-check which files. thanks!

    Attachments:
    You must be logged in to view attached files.
    #249254

    Hello,

    You can edit in this file basel/inc/template-tags.php please find this function: function basel_page_title()

    Best Regards

    #249303

    oleg_dmitriev
    Participant

    Elise, thanks!
    I changed
    <?php if( $page_title ): ?><h3 class=”entry-title”><?php echo wp_kses( $title, basel_get_allowed_html() ); ?></h3><?php endif; ?>
    to h1, it worked like a charm!

    #249391

    Hello,

    Fine. If you have any questions please feel free to contact us.

    Best Regards

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