• Resolved somanyqs

    (@somanyqs)


    I am trying to figure out how to indent all children (show all children all the time) in my left sidebar. I am using the Whitespace theme and learning as I go, still barely know what I am doing!
    I have read some posts where people ask if widgets are used in the template but no further comments. Is that why this isn’t working?

    I do have an active Widget in the right sidebar but not the left one.

    I have the following code on http://www.criticalgolf.com (I need to leave 2 pages out of the left sidebar, so I excluded them):

    <div id=”l_sidebar”>
    <ul id=”l_sidebarwidgeted”>
    <?php if ( function_exists(‘dynamic_sidebar’) && dynamic_sidebar(1) ) : else : ?>

      <?php wp_list_pages(‘exclude=2,13&sort_column=menu_order&title_li=’); ?>

    <?php endif; ?>

    </div>
    <!– end l_sidebar –>

    Also tried using the Flexi Pages widget but no luck.
    Thanks much!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter somanyqs

    (@somanyqs)

    Forgot to add…
    I have been trying different codes on
    http://codex.wordpress.org/Template_Tags/wp_list_pages

    but just can’t seem to get the Pages (except the ones I excluded) to show all of the time (including the children, indented).
    Have also tried them above the line
    <ul id=”l_sidebarwidgeted”>

    Don’t know if that matters, though…

    Do you have margins set in your stylesheet to tell the browser to indent the lists?

    ::looks::

    nope – you don’t. You have your margins set to “0” which means no indentation. You need to add a left margin to make it happen. Something like :

    #sidebar ul ul {
    margin-left:1em;
    }

    or whatever your sidebar div is called.

    Thread Starter somanyqs

    (@somanyqs)

    Ahh, the simple things, huh! 😉

    Thanks so much doodlebee…as you can see I’m still learning the basics of code. If you have any advice for me on good sites/book for a beginner, I’m all ears. For now it’s all been trial and (mostly!) error, with a lot of time on the WP forums…
    Its slow but I’m starting to figure out what some stuff means!

    Thanks again-

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How come children not indenting with wp_list_pages’ is closed to new replies.