• Hannah S.L.

    (@fernashes)


    Automattic Happiness Engineer

    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?

Viewing 8 replies - 1 through 8 (of 8 total)
  • 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.

    wp-content/themes/thethemyouareusing/index.php

    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.

    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.

    Thread Starter Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

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

    Or should I be using an include or something?

    Thanks, guys!

    “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?

    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.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How to edit index.php for 1.5?’ is closed to new replies.