Give help. Get help.

  • # June 29, 2009 at 10:06 pm

    I was wondering if anyone can help me with a line break problem I am having. I have a list of pages that I believe is controlled by the following php code.

    <div class="sidebar-box">

    <?php wp_list_pages(‘title_li=&amp’); ?>
    <div class="clear"></div>

    Current I have a list of pages that reads:

    "Page 1 Page 2 Page 3" and so on.

    What I want is a list with line breaks between the pages:

    Page 1
    Page 2
    Page 3

    If I had a list I would know how to insert them, but I am not sure how to do this with the "title_li" code. Am I even looking at the right source to do this or do I need to modify something else in order for it to work.

    Any help is greatly appreciated.


    # June 29, 2009 at 10:38 pm

    You don’t need to put line breaks in a list. That is how a list will display by default, if it is displaying any other way it is because of the css. Look for the corresponding rules in the stylesheet.

    # June 29, 2009 at 11:38 pm

    It will undoubtedly be caused by rules specified in "<div class="sidebar-box">".

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.