POSTS PAGE PROBS

Everything else!

POSTS PAGE PROBS

Postby jloram » Thu Nov 01, 2012 5:02 pm

Hi all,

Two issues:
1. I want to show excerpts on my posts page (It is not my home page. I have a separate static home page). Don't know how to do this with Sliding Door.
2. I can't get rid of the sidebars on my posts page. When I change Page Attributes to "one column, no sidebar" I still get two sidebars.

Probably beginner issues, but golly, I just can't figure it out. THANK YOU for your help.

Jimmy Loram
http://jimmyloram.com
jloram
I'm new here
 
Posts: 3
Joined: Thu Nov 01, 2012 4:58 pm

Re: POSTS PAGE PROBS

Postby jloram » Fri Jan 11, 2013 2:59 pm

Wow, it's been over 2 months and no response...
This really bums me out because I love the theme.
Can anyone help me?

http://jimmyloram.com
jloram
I'm new here
 
Posts: 3
Joined: Thu Nov 01, 2012 4:58 pm

Re: POSTS PAGE PROBS

Postby MarlonHe » Fri Jan 18, 2013 5:16 pm

1.This can be done by editing loop.php (or adding to your child theme loop). Under * How to display all other posts. * replace this code:
Code: Select all
<?php if ( is_archive() || is_search() ) : // Only display excerpts for archives and search. ?>


WITH
Code: Select all
<?php if ( is_archive() || is_search() || is_home() ) : // Only display excerpts for archives, search and home page. ?>


I add the comment part to remind myself what it does.

2. If you want a post page to just show the content with zero sidebars edit post.php with this
Code: Select all
get_header(); ?>
<?php //get_sidebar(); ?>

      <div id="container" class="one-column">

The // just comments out the sidebar and the class uses the one-column template.

Let me know if this doesn't work but I was able to recreate what you wanted on a localhost version of my site and had no issues with the changes.
MarlonHe
Legend!
 
Posts: 11
Joined: Wed Sep 19, 2012 5:31 am


Return to Announcements and General Support for Slidingdoor Themes