WordPress.org

Ready to get started?Download WordPress

Forums

Magazine Basic
[resolved] DIV for id=tertiary placed wrong in code? (3 posts)

  1. kohlekocher
    Member
    Posted 10 months ago #

    Hello,

    it looks like the code is slightly incorret for the tertiary div-element in Theme v.3.0.2

    Currently it looks like this:

    <div id="page" class="grid ">
     <header id="header" class="row" role="banner">
      <div id="main" class="row" style="width: 1200px;">
        <div id="secondary" class="c3" role="complementary">
        <div id="primary" class="c6" role="main">
      </div>
        <div id="tertiary" class="c3 end" role="complementary">
    </div>

    whichs displays the second sidebar incorrect, at the bottom of the page :-(

    In order to correct it, I think it should look like this:

    <div id="page" class="grid ">
     <header id="header" class="row" role="banner">
      <div id="main" class="row" style="width: 1200px;">
        <div id="secondary" class="c3" role="complementary">
        <div id="primary" class="c6" role="main">
        <div id="tertiary" class="c3 end" role="complementary">
      </div>
    </div>

    But I don't know where and how I could correct it...

    Thanks for any advice!

  2. kohlekocher
    Member
    Posted 10 months ago #

    I found the root cause for this issue, it is in index.php - Line 101

    Just change:

    </div><!-- #primary.c8 -->

    to

    <!-- </div> #primary.c8 -->

    This is the closing tag div-tag, that is not required and messes up the layout. Would be great if this fix could be incorporated into the next update of the theme.

    Best regards!

  3. kohlekocher
    Member
    Posted 10 months ago #

    Ok - I just realized that this also strongly depends on the number of posts, maybe this is related to an issue reported earlier?

    http://wordpress.org/support/topic/index-page-incorrect-div-tags

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.