Support » Themes and Templates » Singular layout problem

  • matthisco


    Hi folks,

    I’m trying to make the content the full width of the site if there is no submenu. If there are child links I’d like to indent the primary div and float the submenu on the left hand side of the page.

    Here is my code to determine if theres a submenu:

    <?php if ($children) { ?>
    <div id="primary" >
     <?php } else{?>
    <div id="primary" class="singular">
     <?php  }?>

    I’ve tried setting the width of primary, content and main to 100%, but there is always a indent, can anyone please help me code this correctly?


Viewing 2 replies - 1 through 2 (of 2 total)
  • mathis@Tambour


    Actually, that’s not the real problem on this website !
    Colors aren’t really nice for our eyes !



    Haha, dont worry, thats just so I can see what the div’s are doing while I fix it! 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Singular layout problem’ is closed to new replies.