• Resolved Anonymous User 11187416

    (@anonymized-11187416)


    Hi there,

    I’m using Auberge to build a site for my other half. Some of the template files are in templates/auberge but others are in plugins/jetpack.

    All I’m trying to do is place the <h1 class="entry-title"> above the featured image on a post (single) but it seems elusive.

    Can you guide me as to the correct template files to edit please?
    Thanks!

    Martin

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Anonymous User 11187416

    (@anonymized-11187416)

    Update: I managed to move it by editing content.php but it caused layout issues on the home page showing the ‘latest news’. So I have put a fresh get_the_title() function in content.php for now but does mean we currently have two <h1> tags per page.

    If you have any advice on this, that would be great, because modifying the post layout affects the posts list on the home page and it would be nice to be able to separate these out somehow within the theme.

    Thanks!

    Hi,

    This would be a tricky issue as it affects other layouts in the theme.

    But if you want this only on single post page, that shouldn’t be that hard.

    Copy the content.php file into your child theme and add this code just below the opening article HTML tag:

    <php
    if ( is_single() ) {
      wm_post_title();
      add_filter( 'wmhook_wm_post_title_disable', '__return_true' );
    }
    ?>
    

    This should work, but I haven’t tested it.

    Regards,

    Oliver

    Thread Starter Anonymous User 11187416

    (@anonymized-11187416)

    Thanks Oliver – as this is a personal project I will try this tonight and get back to you. If it fixes it, I’ll let you know and close the ticket ??
    Appreciate the response,

    Kind regards,

    Martin

    Hi,

    I have already closed the ticket.

    Please understand that I can only provide tips for theme modifications. Please read https://support.webmandesign.eu/support-policy-and-terms-of-service/

    Regards,

    Oliver

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Move Post H1 to Above the Featured Image’ is closed to new replies.