Forums

Twenty Eleven - how to show full posts (8 posts)

  1. wlaxo
    Member
    Posted 1 year ago #

    Hi,
    I am using 20-11 with showcase. I would like to display all posts full (or cut with the more tag), not just the top one. I googled some tweaks to get excerpt on the homepage, but that's not what I want.

    Thanks!

  2. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    please create a child theme http://codex.wordpress.org/Child_Themes of Twenty Eleven first to work with - if you haven't already.

    do not edit Twenty Eleven directly, as an unedited default theme is needed in case of problems.

    then copy content-featured.php into your child theme and edit the line with:

    <?php the_excerpt(); ?>

    change to:

    <?php the_content(); ?>
  3. wlaxo
    Member
    Posted 1 year ago #

    Thanks, but It didn't do anything :( Are you sure I should edit the featured post php? That one is ok (homepage shows the full post), I need to display the remaning recent posts as full posts (not just title)

    Yes I am using child theme

  4. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    without a link to your site, I can only guess:

    try to edit showcase.php:

    <li class="entry-title">
    							<a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a>
    							<span class="comments-link">

    and add something like this before the line with <span class="comments-link">:

    <div class="entry-content">
    			<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyeleven' ) ); ?>
    			<?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?>
    		</div><!-- .entry-content -->
  5. wlaxo
    Member
    Posted 1 year ago #

    Thanks, this brought some progress, the posts are displayed as full now, but the text is all bold (seems like the style of title and content mixed together) and more tag is ignored.

    The site is eurokriza.sk

  6. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    and more tag is ignored

    read http://codex.wordpress.org/Customizing_the_Read_More#How_to_use_Read_More_in_Pages

    please leave the edits active in the site so somebody can check what is not working;
    also post the full code of the edited template into http://pastebin.com/ and post the link to it here.

  7. wlaxo
    Member
    Posted 1 year ago #

    Thank you very much for help. The read more tag is working now. The style is still broken. I will leave the change for some hours, so anyone can have a look...

  8. wlaxo
    Member
    Posted 1 year ago #

    Solved thanks to Zeaks

Topic Closed

This topic has been closed to new replies.

About this Topic