The MU forums have moved to WordPress.org

Don't want images on my index-page, only in single posts (5 posts)

  1. anothero
    Member
    Posted 17 years ago #

    How can I exclude images on my mainpage? I want to do this because I use avatar. I think it looks better when you only see an avatar instead of images included in the posts.

  2. drmike
    Member
    Posted 17 years ago #

    You'll have to go through the theme's index.php file and do some editing.

    the_content displays the entire post with the picture.
    the_excerpt displays the first 120 words without the pictures or html.

    You'll have to change where it uses the_content tag to the_excerpt tag.

  3. anothero
    Member
    Posted 17 years ago #

    Thank you very much, I didn't realize it would be so simple..

  4. anothero
    Member
    Posted 17 years ago #

    Is it possible to change the_excerpt from 120 words to 5 lines?

    Or maybe a maximum of pixels or mm?

  5. Silkjaer
    Member
    Posted 17 years ago #

    or in the css you can define a "img { display:none; }" for the main page

About this Topic

  • Started 17 years ago by anothero
  • Latest reply from Silkjaer