Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1166715
    Kristin
    Participant

    http://staging.peic-us.org/news/

    How can I move the featured image above the title and meta on the masonry style blog layout?

    Thank you!

    #1167336
    Friech
    Moderator

    Hi There,

    Thanks for writing in! Because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released.

    Then on your child theme navigate to this directory \x-child\framework\views\renew\ create a file named content.php in there and paste the code below on it.

    <?php
    
    // =============================================================================
    // VIEWS/RENEW/CONTENT.PHP
    // -----------------------------------------------------------------------------
    // Standard post output for Renew.
    // =============================================================================
    
    ?>
    
    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
      <div class="entry-wrap">
      <?php if ( has_post_thumbnail() ) : ?>
          <div class="entry-featured mbm">
            <?php x_featured_image(); ?>
          </div>
        <?php endif; ?>
        <?php x_get_view( 'renew', '_content', 'post-header' ); ?>
        
        <?php x_get_view( 'global', '_content' ); ?>
      </div>
    </article>

    Hope it helps, Cheers!

    #1168005
    Kristin
    Participant

    Perfect. Thank you, Friech!

    #1168174
    Prasant Rai
    Moderator

    You are most welcome. 🙂

  • <script> jQuery(function($){ $("#no-reply-1166715 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>