Support » Themes and Templates » posts – excerpt and sticky

  • Resolved webwitch

    (@webwitch)


    Hi, I have written a test post and selected sticky but I don’t seem to get the sticky styling to show.

    Also I would like excerpts on the News page. At the moment it is listing the full content. I would like to see the full content only on the single post page.

    Am I missing something here? I thought the default was to display the excerpt.

    Thanks for any help.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Your theme will be using <?php the content();?> instead of <?php the_excerpt;?> in its template files. Simply edit the relevant template files and replace <?php the_content();?> with <?php the_excerpt;?>.

    Thanks for your help. I am using TwentyTen and have looked in index.php
    as well as loop.php but can’t find the code to display the excerpt. Any pointers please?

    Try looking in the 3rd loop within loop.php.

    Thanks – found it! Archives and search was set to excerpt and posts to content so have changed it.

    Any ideas on the non-display of the sticky styling?

    Cheers

    Site url?

    Thanks esmi. The sticky post stays at the top of the news page as it should but has no background styling. It’s here.

    Edit style.css:

    .home .sticky {
    	background: #f2f7fc;
    	border-top: 4px solid #000;
    	margin-left: -20px;
    	margin-right: -20px;
    	padding: 18px 20px;
    }

    and change .home to .blog.

    Great thanks! Problem solved. Thanks so much esmi.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘posts – excerpt and sticky’ is closed to new replies.