Need some help (8 posts)

  1. Lalaith
    Posted 10 years ago #

    My site uses basic PHP (http://starlit-seas.net). I would like to add the header and footer files I already use to my blog. Is there any way I can do that? I'm not very experianced with PHP (I learned it from a tutorial at http://second-breakfast.net/) at all. My header and footer files have the extensions .txt instead of .inc, as I have seen it elsewhere. Will this be a problem?

  2. SuperSpiker
    Posted 10 years ago #

    Make a php file called footer.php and put the footer information (html, php code, etc.) in this file. Save it and then include it into the pages that need the footer.

    You may want to look into the php include function:


  3. James Huff
    Volunteer Moderator
    Posted 10 years ago #

    All you really need for WP to function, if you want to use your own design, is the Loop. The Loop is the php code that displays WP's posts.

    Here are some WP-specific design sources if you want to expand on that as well:

  4. Lalaith
    Posted 10 years ago #

    I used the Loop coding for WordPress 1.2, but it's not showing up on my page. http://starlit-seas.net/main.php Did I do something wrong? =\

  5. Lorelle
    Posted 10 years ago #

    Don't look for it on your "generated" HTML page, Lalaith. It is in your index.php page before it is turned into HTML.

    You can see it either through WP Admin in the TEMPLATES section or by copying the file to your hard drive via FTP (or looking at the one you should have had on your drive when you installed WP).

    The loop begins with <?php if ($posts) : foreach ($posts as $post)... if memory serves me right. Check the link above for specifics.

  6. Lalaith
    Posted 10 years ago #

    OK, I'm obviously doing something very wrong. Fistly, I'm trying to put a background image on index.php, but the image won't show up. Secondly, I use DIVs on my site but they don't seem to be working. The navigation and a few other things should be on the left, and the blog/content should be on the right, but they're "on top of each other" (so to speak) on the right. Can anyone help me? I'm sorry to be such a bother...

  7. TechGnome
    Posted 10 years ago #

    Looks like you used more than just the loop.... at least in the iframe section. If you don't want the navigatio nstuff inside the iframe, you need to remove it. The only thing left in it should be just the loop stuff (oh and the include that's at the top fo wp-blog-header.php, keep that as it's importaint.


  8. Lalaith
    Posted 10 years ago #

    OK, I've pretty much got it under control (finally). Thanks for all of your help, everyone. =)

    I just have one question: how do edit the text of the actual blog? I went all over wp-layout.css, but I couldn't find the right section. =\

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.