Tagged: x
-
AuthorPosts
-
December 2, 2016 at 9:19 am #1278844
sandra.iParticipantHi
Would it be possible to place the post image in the sidebar of the single post page, above ‘recent posts’ widget?
If you look at my post page here, I would like the image to be above the ‘Latest News’ widget on the right.
http://www.rochesterclinic.co.uk/how-does-a-high-protein-diet-aid-weight-loss-study-sheds-light/
I’m happy to modify any php files.
Thanks
December 2, 2016 at 1:20 pm #1279084
JadeModeratorHi there,
Please make a copy of wp-sidebar.php from /wp-content/themes/x/framework/views/renew/wp-sidebar.php then add it in /wp-content/themes/x-child/framework/views/renew/wp-sidebar.php. Replace the code in the file to:
<?php // ============================================================================= // VIEWS/INTEGRITY/WP-SIDEBAR.PHP // ----------------------------------------------------------------------------- // Sidebar output for Integrity. // ============================================================================= ?> <?php if ( x_get_content_layout() != 'full-width' ) : ?> <aside class="<?php x_sidebar_class(); ?>" role="complementary"> <?php if ( has_post_thumbnail() ) : ?> <div class="entry-featured"> <?php x_featured_image(); ?> </div> <?php endif; ?> <?php if ( get_option( 'ups_sidebars' ) != array() ) : ?> <?php dynamic_sidebar( apply_filters( 'ups_sidebar', 'sidebar-main' ) ); ?> <?php else : ?> <?php dynamic_sidebar( 'sidebar-main' ); ?> <?php endif; ?> </aside> <?php endif; ?>Then add this CSS:
.x-main .entry-featured { display: none; }Hope this helps.
December 3, 2016 at 4:13 am #1279714
sandra.iParticipantPerfect, thanks!
December 3, 2016 at 4:22 am #1279720
ThaiModeratorYou’re most welcome 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1278844 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
