Title: Adding page codes
Last modified: August 19, 2016

---

# Adding page codes

 *  [loozianajay](https://wordpress.org/support/users/loozianajay/)
 * (@loozianajay)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/adding-page-codes/)
 * 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

Viewing 1 replies (of 1 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/adding-page-codes/#post-1072406)
 * 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*

Viewing 1 replies (of 1 total)

The topic ‘Adding page codes’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [17 years, 1 month ago](https://wordpress.org/support/topic/adding-page-codes/#post-1072406)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
