Forums

convert hierarchial menu into a flat list (3 posts)

  1. karunnt
    Member
    Posted 3 years ago #

    I would like to add all my menu items into the footer. Unfortunately wp_list_pages converts the menu into an unordered list while I just need a list of links.

    Is there any way to convert a hierarchical menu into a flat list of link.

  2. Alex Mansfield
    Member
    Posted 3 years ago #

    You can use CSS to make the unordered list appear however you would like. For example if you were to give the unordered list from wp_list_pages an id of "footer-links" you could use this code to make it appear as a flat list:

    #footer-links li{display: inline;}

    I think that's what you're looking for. If not, let us know.

  3. artsyalicatt
    Member
    Posted 3 years ago #

    Actually I think you are looking to post the links kind of like this, right?:

    LINK
    ---------
    LINK
    ---------
    LINK

    without the bullets right?

    All you have to do with that is style in CSS this way:

    #yourfooterdivid ul li {
    list-style:none;
    margin:0;
    }

Topic Closed

This topic has been closed to new replies.

About this Topic