Forums

[resolved] Creating a Flat List (3 posts)

  1. Moessap
    Member
    Posted 1 year ago #

    The theme I'm using doesn't integrate pages in the header, so I tried to add them myself.

    I did this successfully by adding the following in header.php:

    <div id="pages">
    <ul id="pagesnav">
    <?php wp_list_pages('title_li=&depth=1'); ?>
    </ ul>
    </div>

    And then added the following in the stylesheet:

    #pages {
    font-size: 15px;
    }

    ul#pagesnav {
    list-style-type:none;
    list-style-image:none;
    padding:5px 5px 0;
    height:35px;
    width:100%;
    margin:auto;
    }

    The site is http://site6.mattmossop.com (just started it).

    It worked, however I want the pages in a single row, as opposed to a in a column.

    I've tried a few things and can't figure this out.

    Any help would be appreciated.

    Thanks!

  2. iridiax
    Member
    Posted 1 year ago #

  3. Moessap
    Member
    Posted 1 year ago #

    Awesome... thanks for the info.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.