• Hiya gang,

    I’m very new to WordPress & PHP, and am having a little trouble setting up extra pages on my site.

    Specifically, my extra pages don’t seem to be aligning properly – the main text is dribbling off into the space that should be occupied by the sidebar, and the sidebar is placing itself at the bottom of the main column – not along the side. To be specific: https://droopheadedflowers.zapto.org/index.php/?page_id=8
    where it should be like:
    https://droopheadedflowers.zapto.org/index.php/?page_id=3

    (I have no idea why the ‘about me’ page works, but no others do. I assume ‘About Me’ is an auto-generated default page…as far as I remember???)

    Any suggestions most appreciated!

    Thanks in advance,
    JB

Viewing 4 replies - 1 through 4 (of 4 total)
  • <div id="content" class="narrowcolumn">
    Where’s that div above coming from? It doesn’t belong there, I suppose.

    Thread Starter droopheadedflowers

    (@droopheadedflowers)

    Hmmm….It only occurrs with the template I happen to be using (Minima Plus), all other templates bring up the page fine.

    I tried deleting the suggested code above, which partially helped – but not entirely. The main column no longer wraps along onto the sidebar, but the sidebar content still comes up in the main column, underneath the main contents.

    I tried copying the page.php file from the default template across, but that didn’t change anything. Then I just deleted the page.php file entirely from the minima plus directory. I get the column rows back, but of course I no longer have the page template.

    …hmmm…perplexing….

    Thread Starter droopheadedflowers

    (@droopheadedflowers)

    Hmmmm…I’ve found a solution, albeit a very strange one. It involves closing 2 </div> tags that don’t have corresponding <divs> in the first place. Odd….

    I went to page.php in the minimaplus template directory.

    Line 3: I cut the line <div id=”content” class=”narrowcolumn”>
    But *did not* delete the corresponding </div> tag – instead, I added another </div> close tag on the fourth line from bottom – just below <?php edit_post_link(‘Edit this entry.’, ”, ”); ?>

    That makes two </div> tags that don’t have corresponding divs…but the page works. If you take out either of the two </div> tags at the bottom the alignment problem resurfaces again.

    An odd solution, but I guess if it works…..hmm…

    Lots and lotsa thanks for pointing out the narrowcolumn tag, by the way – most appreciated and most helpful!

    This is an old post, but I’ve just been looking at minimaplus to use, and in the header.php file, it seems to have 3 open <div> ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Pages won’t align’ is closed to new replies.