WordPress.org

Ready to get started?Download WordPress

Forums

Hidden images in front page (2 posts)

  1. silverez
    Member
    Posted 7 years ago #

    Hello,

    How can I hide the images in the front page of my blog?
    I want that the images appear when people click on a post.

    Thanks a lot

  2. Adam Brown
    Member
    Posted 7 years ago #

    Go into your template directory and open header.php. Somewhere between <head> and </head>, paste in some code like this:

    <?php
    if ( is_home() ){
        print "<style type='text/css'>\n img{display:none;}\n</style>";
    }
    ?>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags