I would like to know how to display the content below in main/archive page (where all my posts are), but hide it in the single page (where the actual post is, that happens once the user clicks on the post from main page for example):
background: url(“http://image.com/1.png”) repeat scroll 0 0 transparent !important;
background: url(“http://image.com/2.png”) repeat scroll 0 0 transparent !important;
background: url(“http://image.com/3.png”) repeat scroll 0 0 transparent !important;
At the moment, the example images are being displayed everywhere (if the user is on the main page, he is able to see all posts and images too.. If the user searches, he can see images.. If the user is reading the actual post, he can still see the images). I only want the user to see the image when he is on the main/archive page.
- The topic ‘Display certain CSS function on home/archive page, but hide in single page.’ is closed to new replies.