• infnit

    (@infnit)


    http://iid.outer-heaven.net/blog

    See that part with the recent posts and the “search” bar. When you click on “Gallery” you’ll see it again 🙁 but when viewing a blog entry you don’t see it.

    How can I make it appear only on the home page.

Viewing 7 replies - 1 through 7 (of 7 total)
  • sunny7l

    (@sunny7l)

    I think, if you include that little section you’re referring to in the index.php BUT leave it off of the archives.php and single.php files it won’t appear on the individual entries pages, nor in the archives section.

    The index.php applies to all pages when you don’t include additional templates (e.g. archives.php and single.php).

    Thread Starter infnit

    (@infnit)

    O,so how do I add these extra pages?

    sunny7l

    (@sunny7l)

    They come with one of the default templates, in 1.5, I just modified them for my site. I’m not sure where you’d find them otherwise but check the default themes, downloaded with the 1.5 package — the pages are called: archive.php (no “s”) and single.php.

    Thread Starter infnit

    (@infnit)

    Ill try, tell ya if it works

    sunny7l

    (@sunny7l)

    Here’s a useful link: http://boren.nu/archives/2004/11/10/anatomy-of-a-wordpress-theme/

    It lists and explains the pages, I’m sure there’s more at the WP Wiki, also: http://wiki.wordpress.org/

    Thread Starter infnit

    (@infnit)

    Didnt work 🙁

    Thread Starter infnit

    (@infnit)

    Had to add a page.php file – Thanks 🙂

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Have a piece of code only on the home page’ is closed to new replies.