WordPress.org

Ready to get started?Download WordPress

Forums

Problem with Page Template Using Suffusion Theme (3 posts)

  1. ontargetpro
    Member
    Posted 4 years ago #

    I love the suffusion theme and I'm using it on a site that is under construction at http://www.ontargetpro.info. I have the site's blog posts displayed on a page called "News" because I wanted to be able to add sidebars to the page. On the "News" page, I selected the Template "Single Left and Single Right Sidebar", which pulls 1l1r-sidebar.php. It worked fine at first, but for some reason, now it doesn't. If I apply that template, it shows no sidebars. All the other template options still work. Right now it uses "Single Left Sidebar"

    I thought that maybe if I went back and got the original 1l1r-sidebar.php file and saved 1l1r-sidebar.php with a new name and gave it a new name inside the template file, that might do it. Nope. I can select it, but no sidebars show at all.

    The only thing I can think of that I did between the time that template worked and then stopped is that I installed and used Exec-PHP and used it on the "News" page to insert post text into the page.

    I've tried applying the template on other pages and get the same result. Here's the template code:

    <?php
    /**
     * Template Name: Single Left and Single Right Sidebar
     *
     * @package Suffusion
     * @subpackage Templates
     */
    
    get_header();
    ?>
    
        <div id="main-col">
    <?php
    suffusion_page_navigation();
    suffusion_before_begin_content();
    ?>
      <div id="content">
    
      <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
        <div class="post fix" id="post-<?php the_ID(); ?>">
    <?php suffusion_after_begin_post(); ?>
    
            <div class="entry fix">
    			<?php suffusion_content(); ?>
    		</div><!--/entry -->
    		<?php suffusion_before_end_post(); ?>
    	<?php comments_template(); ?>
    
    	</div><!--/post -->
    
    	<?php endwhile; endif; ?>
    </div></div>
    	<?php get_footer(); ?>
  2. Sayontan Sinha
    Member
    Posted 4 years ago #

    I have the site's blog posts displayed on a page called "News" because I wanted to be able to add sidebars to the page. On the "News" page, I selected the Template "Single Left and Single Right Sidebar", which pulls 1l1r-sidebar.php.

    This will not work. Your "News" page is simply an alias for the page that lists out your posts and any template that you apply, like "Single Left and Single Right Sidebar" will not impact it - it will be ignored. That template is applied to static pages, not dynamic lists of posts.

    That being said I am unable to fathom your intent. Firstly, on your site I see that your news page actually has one sidebar to the left and not 0 sidebars as you state. Secondly you could always set up your site to have one left and one right sidebar (Visual Effects → Sidebars and Widget Areas), then use the "No Sidebars" template for your static pages. Your news page will automatically show up with the layout you desire.

  3. ontargetpro
    Member
    Posted 4 years ago #

    It should work because I am using a php include on the News page that shows the list of posts. The "News" page is a page. At the moment, yes, the News page has a sidebar. I can get one left sidebar, two left, one right or two right, but not the one left and one right option that is available.

    Your secondly option? Yeah, that might work. I'll try that, thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic