• Resolved cbmc

    (@cbmc)


    I currently use Massive News (https://www.press75.com/themes/massive-news-theme-demo/) as my theme, but the sidebar makes posts rather narrow. Usually that’s fine, but sometimes I want to show a larger image or an HD video player.

    I like how Zack 990 (https://labs.andreamignolo.com/zack990/) puts the sidebar / widgets at the bottom in 4 columns and allows the content to fill the width of the page.

    I want to create a file called wide_single.php which will be a hybrid between how the two themes place widgets.

    How do I add that 4-column bottom widget bar sort of functionality to work with Massive News as a alternate page template wide_single.php, while retaining the normal sidebar on single.php posts?

Viewing 4 replies - 1 through 4 (of 4 total)
  • You would need to add 1- 4 separate widget-capable areas to your theme’s footer template file.

    Thread Starter cbmc

    (@cbmc)

    Then they’ll just show up in Dashboard, or are there more steps? If it is in the footer, how do I keep the bottom widgets from showing up on the single.php template posts? I only want the bottom widgets to show up with the posts using the wide_single.php template. Do I need two footer files?

    Then they’ll just show up in Dashboard

    Yes

    how do I keep the bottom widgets from showing up on the single.php

    Use something like:

    <?php if( !is_single()  ) :
    if ( !dynamic_sidebar() ) : ?>
    <?php endif;
    emdif;?>

    I only want the bottom widgets to show up with the posts using the wide_single.php template

    Then try something like:

    <?php if( is_page_template('wide_single.php')  ) :
    if ( !dynamic_sidebar() ) : ?>
    <?php endif;
    emdif;?>

    Thread Starter cbmc

    (@cbmc)

    thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘adding an alternate single.php with the sidebar on the bottom’ is closed to new replies.