WordPress.org

Ready to get started?Download WordPress

Forums

How to edit index.php for 1.5? (9 posts)

  1. fernashes
    Member
    Posted 9 years ago #

    I know, it's a strange question. But what I want to do is update my index.php (or at least, that's what it would be if I were still running 1.2) to add things like the function call for the weather plugin, stats counter, etc. However, with the current code of index.php in 1.5, that's kind of difficult.

    Can somebody please point me in the right direction?

  2. ebby
    Member
    Posted 9 years ago #

    click on Presentation. . .then you'll see Theme Editor in the grey bar underneath the main menu. voila. Make sure your Index file is set to the right file permissions - it'll tell you under the edit box anyways, which is handy.

  3. KyleGM
    Member
    Posted 9 years ago #

    wp-content/themes/thethemyouareusing/index.php

  4. ringmaster
    Member
    Posted 9 years ago #

    The new index and its associated files are in /wp-content/themes/default/

    Index.php is the main file with the post loop in it, but the sidebar.php has the sidebar stuff in it that you're probably going to modify most heavily.

  5. Kafkaesqui

    Posted 9 years ago #

    All your *index.php* material would reside in the directory of the theme they're using. Checking your site...the default theme is in:

    wp-content/themes/default/

    You'll find a number of php files there; each is a template for specific elements of your blog. header.php has the top portion (mainly the <head>) of your page, sidebar.php holds the menu content, and so on. Most should be obvious by the name.

  6. fernashes
    Member
    Posted 9 years ago #

    But what if I want my index to be theme independent?

    Or should I be using an include or something?

    Thanks, guys!

  7. Kafkaesqui

    Posted 9 years ago #

    "But what if I want my index to be theme independent?"

    Could you be a little more detailed on this? If you're just breaking up a PHP document and want the various sectioned documents used in others, you can use the PHP include function.

    Beyond this, how do you want it to be independent from themes?

  8. elmsblog
    Member
    Posted 9 years ago #

    My question is similar- I have found how to edit my themed "index" page, and the associated CSS. HOWEVER... when I click on an entry from my home page, the individual entry's page isn't displayed like my home page was. The header is different; there is no sidebar; and more. I've looked through the php files in my theme's folder, however, I can't seem to find what controls the individual post's page.

  9. NuclearMoose
    Member
    Posted 9 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.