Home>Support>Sidebar for single posts below featured image

Sidebar for single posts below featured image

Hello,
I want to use the ‘Custom Sidebars’ widget to create sidebars for single posts, but I want the featured image to be positioned above both the sidebar and the content. Is there any way for me to do that?
Thanks in advance,
Alex

URL: http://sportsglory.ru/%D1%88%D0%B5%D1%81%D1%82%D1%8C-%D1%88%D0%B0%D0%B3%D0%BE%D0%B2-%D0%BD%D0%B0-%D0%BF%D1%83%D1%82%D0%B8-%D0%BA-%D1%83%D1%81%D0%BF%D0%B5%D1%88%D0%BD%D0%BE%D0%BC%D1%83-%D1%81%D0%BF%D0%BE%D0%BD%D1%81%D0%BE/

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 10 years, 9 days ago Andrew Misplon
    Hi, I Work Here

    Hi Alexandr

    Thanks for running Vantage.

    This is unfortunately not easily achieved within the template. At a glance you’d need to place content-single.php in your child theme and remove these lines:

    <?php if( has_post_thumbnail() && siteorigin_setting('blog_featured_image') ): ?>
    	<div class="entry-thumbnail"><?php the_post_thumbnail( is_active_sidebar('sidebar-1') ? 'post-thumbnail' : 'vantage-thumbnail-no-sidebar' ) ?></div>
    <?php endif; ?>
    

    You’d then need to place that same code within single.php, also contained in your child theme. In single.php you’d need to try placing that code above the primary div on line 11.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More