WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Line break in wp_list_pages (navigation) (2 posts)

  1. loepzuiver
    Member
    Posted 3 years ago #

    Hi guy's,

    I would like to make a line break after each page in my navigation.

    Now its like:
    HOME PAGE 01 PAGE 02

    would like to make it:
    HOME
    PAGE 01
    PAGE 02

    This is the default code:
    <?php wp_list_pages('hide_empty=0&title_li='); ?>

    Oh... it really would be awesome if I could also type the vertical distance spacing.. :)

  2. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

    the output of 'wp_list_pages()' is a html list, which would show in a vertical list by default, if not styled with css in a different way.

    check the style.css of your theme for the styles of the pages menu.

    the vertical space is then controlled by normal list css

    http://www.w3schools.com/Css/css_list.asp

Topic Closed

This topic has been closed to new replies.

About this Topic