Tagged: x
-
AuthorPosts
-
September 8, 2016 at 12:31 pm #1166715
KristinParticipanthttp://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!
September 8, 2016 at 8:24 pm #1167336
FriechModeratorHi 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!
September 9, 2016 at 9:10 am #1168005
KristinParticipantPerfect. Thank you, Friech!
September 9, 2016 at 11:09 am #1168174
Prasant RaiModeratorYou are most welcome. 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1166715 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
