• I’ve recently upgraded to 1.5 and I’m wanting to re-add some code for my stat counter to my blog. To do so, I need to put the code within the body tags on the page to be tracked, but I can’t for the life of me find the relevant word press page that actually has honest to god HTML…most have php and/or css and thus lack the needed body tags. My index.php and blogger.php (which are, at least, where the browser is pointed when one visits the blog) both have (only) the following message:

    <?php
    /* Short and sweet */
    define(‘WP_USE_THEMES’, true);
    require(‘./wp-blog-header.php’);
    ?>

    Intuitively it seems I *should* put the stat counter code in index.php (and blogger.php) but I don’t know where to and/or how I should change the code in index.php (to add the more traditionaly html formatting so that I can get my body tags) in ways that won’t affect the php coding.

    (Randomly, when I go to the blog site and check the source from the browser, I do get a page with the html…but I take it that the page is actually a nice combination of a lot of different wordpress pages and database information and such and thus the source code from the browser doesn’t tell me much.)

    Do you know where to find the relevant page with actual html? Do I need to add it to the index.php page? (If so, can I do it easily without messing up the php that’s currently there?)

    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • 1.5 runs on themes and templates all of which is stored in wp-content/themes … have you tried reading the upgrade manual?

    Thread Starter michellealaska

    (@michellealaska)

    Yeah…I did check the themes (first through theme editor and then by downloading the relevant theme via htmp and examining it in a text editor)…at least in the default theme (which I’m currently using) it appears to be made up of just CSS…no html in sight. Maybe I’m completely missing it (although one can hardly miss html tags) but I rather doubt it.

    If you’re asking if I was aware that the new wordpress ran on themes and where said themes are located. Yes. Completely aware. But I’m still not aware of where, amidst the various themes and index pages and such, the html happens to be.

    In the default theme (Kubrick), the body tag is in the header.php file. The closing body tag is in the footer.php. Hope that helps. ??

    And, to be quite plain, the rest of the body is in the index.php that’s in the same folder as the header.php and the footer.php.

    This is so you can have custom pages while still maintaining a common header and footer.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Where’s the HTML?’ is closed to new replies.