Support » Theme: Twenty Eleven » [Theme: Twenty Eleven] featured posts full length??

Viewing 9 replies - 1 through 9 (of 9 total)
  • esmi


    Forum Moderator

    Do not edit the Twenty Eleven theme. It is the default WordPress theme and having access to an unedited version of the theme is vital when dealing with a range of site issues. Create a child theme for your changes.

    Thanks Esmi I should have mentioned I already have the child theme in place 🙂



    Forum Moderator

    You would need to add a simple PHP counter variable that is incremented in the Loop and then conditionally use the_content() or the_excerpt() based on that counter’s value.

    OK sorry but im more of front en designer with little php experience… In other words I need you to spell it out a bit more for me than that 🙂 haha!

    I’ve got all my posts showing as excerpts but i want the featured post to remain full length

    which template have you edited for that?

    are you talking about the ‘showcase.php’ template?

    I edited the Content.php file, the code looks like this.

    line 40:

    <div class="entry-content">
            <?php the_post_thumbnail('twentyeleven-thumbnail-feature'); ?>
            <?php the_excerpt(); ?>
    			<?php //the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyeleven' ) ); ?>
    			<?php //wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?>
    		</div><!-- .entry-content -->

    [Please post code or markup snippets between backticks or use the code button.]



    Forum Moderator

    That’s not the right template. If this is for your main posts page, you need to creating a customised version of index.php in your child theme.

    can someone explain what the code should say?

    Did you get an answer to this? I would like to do the same thing and am using a child-plan of Twenty Eleven also.

    I’m confused, should we make the change in the showcase.php file or the index.php file of our child-plan, and what change should we make?

    Can anyone help? Thanks.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Theme: Twenty Eleven] featured posts full length??’ is closed to new replies.