WordPress.org

Ready to get started?Download WordPress

Forums

How to add a "|" to header (2 posts)

  1. cartpauj
    Member
    Posted 6 years ago #

    I have in my header code <?php wp_list_pages('title_li=&depth=1') ?> and it displays my pages HOME About Contact but I would like it to display HOME | About | Contact. Can I add some code to the wp_list_pages() or does it need to put something in my stylsheet?

  2. misty9
    Member
    Posted 6 years ago #

    One of the ways is to tweak the Style.css. The following is a block of code from my Style.css. You can try to replace menu-bg.gif with the pipe bar icon file.

    #menu ul li a{
    padding: 10px 20px 10px 12px;
    background: url(images/menu-bg.gif) no-repeat;
    background-position: 0 13px;
    text-decoration: none;
    color: #FFF;
    display: block;
    }

Topic Closed

This topic has been closed to new replies.

About this Topic