WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Code issue (6 posts)

  1. haussamen
    Member
    Posted 4 years ago #

    Hi all,

    On this page I'm building on my site:
    http://www.nmpolitics.net/index/announcements/

    The left column I'm trying to make as a widget sidebar, but there is that blank space above where the widgets start and I can't figure out why. Basically, it doesn't matter if there are 15 or two (the current number) post excerpts in the middle column, the left sidebar aligns itself with the bottom post excerpt, leaving blank space in the left column next to all the others.

    I'm no coding expert, but here's my code for the page:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Any suggestions?

    Thanks.

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    Start by sorting out the validation errors on your site. Then move onto the CSS errors.

  3. alchymyth
    Forum Moderator
    Posted 4 years ago #

    i have the feeling that the <div id="featured-cats"> code (or loop) should be inserted before this loop:
    <div id="more-posts" class="clearfloat recent-excerpts">

    make a backup copy of the theme files before editing.

    hope you can make sense of this comment and can try to modify your code accordingly.

  4. haussamen
    Member
    Posted 4 years ago #

    I'm in the process of cleaning up the code, but I have another question: Can I use the id "more-posts" more than once on the site, or is it only that you can't use it more than once on a page? Right now I'm using it twice on the site, but the two will never appear at the same time. It's easy enough to create a "more-posts2" if I need to, just wondering if I need to -- and if that might be part the initial problem that got me here.

  5. Rev. Voodoo
    Volunteer Moderator
    Posted 4 years ago #

    it's per page

    div ID can only appear once per page
    classes can be multiple times

  6. haussamen
    Member
    Posted 4 years ago #

    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic