Page 1 of 1

Sliding Door-Single Post

PostPosted: Mon Oct 29, 2012 9:23 pm
by HipsterH
I am using Sliding Doors as my template for my website.
I wanted to have the post summary on the front page and not the full text. So I tried to make a change to the Sliding Door- Single Post php.
Not only do the post still appear in full text but when you click on the post title (or any link that leads to a single post) it just takes you to a white screen.

#1 I think I need the original Single Post php to paste back in there.
a. how do I do that?
b. If I have to reinstall the theme to do that will I loose all the information on my widgets like my calendar data etc.

#2. After this is fixed does anyone know how to only show a post summary and not full text on the home page?

Re: Sliding Door-Single Post

PostPosted: Mon Oct 29, 2012 10:30 pm
by MarlonHe
1. You can download the theme from wordpress: http://wordpress.org/extend/themes/sliding-door
a. Open the zip file and locate single.php. Then copy either the HTML or just upload the php file to your site
b. I believe you would lose customization if you didn't use child theme.

2. I was trying to do this as well but only found a crude way. In loop.php look for the section:
Code: Select all
<?php /* How to display all other posts. */ ?>
more code...
<?php if ( is_archive() || is_search() ) : // Only display excerpts for archives and search. ?>


Now the first part tells it to only put excerpt in archives/search and for all else to show the post. Well change it from:
Code: Select all
<div class="entry-summary">
            <?php the_excerpt(); ?>
         </div><!-- .entry-summary -->
   <?php else : ?>
         <div class="entry-content">
            <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'slidingdoor' ) ); ?>
            <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'slidingdoor' ), 'after' => '</div>' ) ); ?>
         </div><!-- .entry-content -->


TO
Code: Select all
<div class="entry-summary">
            <?php the_excerpt(); ?>
         </div><!-- .entry-summary -->
   <?php else : ?>
            <?php the_excerpt(); ?>
         </div><!-- .entry-summary -->


Again this is a crude way of doing it but worked for me. Keep in mind that you will have to actually type something into the Excerpt field of a post/page or else it will display the first words (250?) of a post/page WITHOUT any css.

You would need to add the style to light.css (or dark.css) under
Code: Select all
.entry-summary{
}


So something like
Code: Select all
.entry-summary{
color: white;
background-color: black;
}