• Resolved warrenleon

    (@warrenleon)


    Hey there,

    I have two problems with my site. First, the white background on the page only goes down about a third of the page. I had inadvertantly deleted the following two lines in my header.php: <div id=”wrapper”> and <div id=”content”>. When I put them back in, the white background returned, but barely goes down the page. The address is: https://www.screenwritinglife.com.

    Second, when I put that code back in, it also seemed to obliterate my statcounter, which I had finally gotten placed nicely on the bottom of the page.

    Help!

    Thanks!
    Warren

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter warrenleon

    (@warrenleon)

    Anyone? Can anyone help me figure out how to move the white background all the way down to the bottom of the page?

    https://www.screenwritinglife.com

    Thanks as always for the help,
    Warren

    This is a site with an amazing array of divs and an equally amazing array of XHTML errors, most of which probably don’t interfere with the background. First of all, move the <body> tag right after </head>, that is where it belongs.

    Now, did you put those divs back in at the same place you removed them from? Tip: refer to the original template you used. I don’t think you did, look at the first occurrence of the wrapper and content divs. They are closed immediately, but probably at least one of those div closes is for the top and/or page divs immediately preceding. And then there is another div with id=”content” opened just a few lines later! You should only have one id=”content” div in a document, as far as I know.

    Again, grab the original template, and see how its divs are placed. You might need to disable plugins to get closer to the original, I don’t know.

    Success,

    Karel

    Thread Starter warrenleon

    (@warrenleon)

    Hi,

    Thank you sooo much for answering. I’m trying to learn this stuff as I go, which is not the right way to do it, I know. Ummm, the problem seems to be that I can’t get the header.php code from the original theme – relaxation 3 columns, because when I open it with my text editor, it just opens up a box that says header. All the other php documents open up find, but not that one.

    I’ve gone to the site of the developer, who’s running the same theme, and trying to use that as the base, but of course, it’s not really working.

    Anyway, I have no idea what I’m doing, but after some trial and error, I ended up with the code below. Now, I know this is probably really, really wrong, but it looks great on my browser. Hopefully looks great for everyone. So I’m hoping I don’t have to change it now. What do you think?

    BTW, do you have any idea where I could learn XHTML? A good place to start?

    Thanks again. Here’s the code at the bottom of my header. It all started working when I added yet another </div> at the bottom. I don’t even know what </div> means. Ugh.

    <?php wp_head(); ?>
    </head>
    <body>
    <div id=”header”>
    <ul id=”topnav”>
    <div><h5>The Screenwriting Life</div>
    </div>
    <div id=”page”>
    <div id=”top”>
    <div id=”wrapper”>
    <div id=”content”>

    </div>
    </div>

    Moderator James Huff

    (@macmanx)

    any idea where I could learn XHTML? A good place to start?

    I highly recommend https://www.w3schools.com/xhtml/default.asp

    Good! Whatever you did, it worked! It still looks funny: those divs that get closed immediately, but never mind. You could also look at the source for the site of the theme developer. This might give you an idea about the structure of the header file.

    A lot of the broken XHTML seems to be javascript related. I have no experience with that.

    Regards,

    Karel

    Thread Starter warrenleon

    (@warrenleon)

    Thanks again for the assistance.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Two Easy (?) Questions…’ is closed to new replies.