WordPress.org

Ready to get started?Download WordPress

Forums

Everything that I delete from index.php gets erased on others!!?? (3 posts)

  1. dateunknown
    Member
    Posted 7 years ago #

    The problem is that everything that I delete from the index.php gets erased on every other page. I am trying to take off the "e-mail this page" link at the bottom of the other sections in the site, and only have it on the main page. But it's not working ...

    Anyone have any suggestions? http://www.dateunknown.com/index.php

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    The index.php is sort of the fall back position for themes that lack specific templates for things like single posts or archive pages and so forth.

    Understanding the Template Hierarchy would probably help you out a lot:
    http://codex.wordpress.org/Template_Hierarchy

    The short version is to copy your index.php into the other templates, and then those templates will get used for those specific sorts of pages. This lets you edit each type of page independently.

  3. dateunknown
    Member
    Posted 7 years ago #

    you're the man

Topic Closed

This topic has been closed to new replies.

About this Topic