Forums

[resolved] Using the more tag with Tweaker2 (4 posts)

  1. Lemonaid
    Member
    Posted 1 year ago #

    My blog is at http://pencilandfork.net

    I recently changed my theme to Tweaker2 and I'm having trouble with the <!--more--> tag (read more). When I write posts, I use the more quicktag button to control the length of the excerpt shown on the main page, but since I changed to Tweaker2, I can't seem to get it to work.

    Although the more tag is still visible when I edit the post, the excerpts shown on the main page are shorter, of an arbitrary length. I want to be able to decide how long the excerpt is and for most of them, I have images placed before the cut off, which I want to appear on the main page. I have searched for answers but can't work out how to change this. Please help!

  2. Christine
    Moderator
    Posted 1 year ago #

    I'm not familiar with the tweaker theme, but I'm guessing that the theme developer has added some code to restrict the excerpt length. So if you want to change this, you'll need to modify the theme.

    In your templates, look for <?php the_excerpt();?> and change these to <?php the_content('Read more');?>

  3. Lemonaid
    Member
    Posted 1 year ago #

    Thanks very much Christine - that's worked. I kind of knew where to look, but didn't realise I had to remove the "the_excerpt" bit, so thanks!

  4. adastra
    Member
    Posted 1 year ago #

    It didn't work for me in twentyten - it shows the entire content instead of just the part in front of my <!--more--> tag. Why's that?

Topic Closed

This topic has been closed to new replies.

About this Topic