Move Entry-Meta below Featured Image in Renew

Hey folks,

I want to move the entry-meta below the featured image for the Post Archive. I’m using Renew. I know that I need to create the child-view (or whatever you call it)—my question is how to do that.

Entry-meta lives in _content-post-header.php and would need to move to content.php. Is it as simple as the below?

<header class="entry-header">
  <?php if ( is_single() ) : ?>
  <h1 class="entry-title"><?php the_title(); ?></h1>
  <?php else : ?>
  <h2 class="entry-title">
    <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to: "%s"', '__x__' ), the_title_attribute( 'echo=0' ) ) ); ?>"><?php the_title(); ?></a>
  </h2>
  <?php endif; ?>
  // REMOVE <?php x_renew_entry_meta(); ?> REMOVE //
</header>

And then:

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  <div class="entry-wrap">
    <?php x_get_view( 'renew', '_content', 'post-header' ); ?>
    <?php if ( has_post_thumbnail() ) : ?>
      <div class="entry-featured">
        <?php x_featured_image(); ?>
      </div>
    <?php endif; ?>
// ADD <?php x_renew_entry_meta(); ?> ADD //
    <?php x_get_view( 'global', '_content' ); ?>
  </div>
</article>

Or is there a better way to do this?

Thanks! Luke

Hi Luke,

Thanks for writing in! Your method is the logical way to do the customization. Make sure to setup a child theme and activate it first by following this guide (https://theme.co/apex/forum/t/setup-how-to-setup-child-themes/57).

Then you can copy your template files into your child theme’s respective location and do your changes. You can also check our customization best practices guide here (https://theme.co/apex/forum/t/customizations-best-practices/205).

Hope that helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.