Support » Everything else WordPress » Hidden images in front page

  • 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

Viewing 1 replies (of 1 total)
  • 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>";
    }
    ?>

Viewing 1 replies (of 1 total)
  • The topic ‘Hidden images in front page’ is closed to new replies.