Using pipe (‘ | ‘) to separate nav links when including certain pages
-
Greetings,
I am using this line of code to create a navigation including only certain page titles and wrapping them in an li:
<div class="menu top"><ul><?php wp_list_pages('include=2,4,8,6&title_li='); ?></ul></div>
and this bit of css to create a “pipe” in between each page listed.
.menu li:after {color:#fff; content: " | "} li:last-child:after {content: "";}
It works in the modern browsers, but I wish to find a solution that would create the pipe by writing code in the php code.
Thx in Advance!
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Using pipe (‘ | ‘) to separate nav links when including certain pages’ is closed to new replies.