Forums

Adding page codes (2 posts)

  1. loozianajay
    Member
    Posted 3 years ago #

    I tried this on themes and templates. No help.

    Quick question.

    I've added pages to my footer. Instead of listing the pages how can I get them to go across the footer horizontally?

    Example:

    About | Contact | Advertise| Links

    Thanks,

    Jason

  2. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    You can list them and have them display horizontally.

    Markup:

    <div id="footer">
    [...]
    <ul class="pages">
    <?php wp_list_pages('title_li=&amp;depth=1');?>
    </ul>
    [...]
    </div>

    CSS:

    #footer .pages {
    	margin:0;
    	padding:0;
    }
    #footer .pages li {
    	display:inline;
    	margin:0 3px;
    	padding:0;
    	list-style:none;
    }

    Edit: And the code block is messing up the ampersands again! *sigh*

Topic Closed

This topic has been closed to new replies.

About this Topic