Moving my page links into my header (5 posts)

  1. theplastickid
    Posted 6 years ago #

    I have cut the PHP code from my sidebar file and pasted it into my header file so that my pages are displayed in the header. This is the code:

    <div id="top-navigation">
    	<div id="nav-container">
    			<ul><?php wp_list_pages('' ); ?></ul>
        </div><!---box that contains the actual links and quote background image--->

    However I am having a problem with the link. They are taking on the hover style I have applied in my stylesheet but not the :link or :visited styles. Here is an image: http://img27.imageshack.us/img27/2759/90164719.jpg

    The CSS

    #nav-container a:link,
    #nav-container a:link a:visited {
    	color: #5c1010;
    	text-decoration: none;
    	font-size: 150%;
    	line-height: 150%;
    	letter-spacing: 5px;

    I would also link it not to display the title "pages" either and don't know how to remove this.

    Appreciate any help.

  2. theplastickid
    Posted 6 years ago #


  3. theplastickid
    Posted 6 years ago #

    Really need to find out how to get the title of the pages list to not display.

  4. wizardregis
    Posted 6 years ago #

    To solve the link and visited problem, just change

    #nav-container a:link,
    #nav-container a:link a:visited {


    #nav-container a:link,
    #nav-container a:visited {

    As for your "pages" problem, check this page for more info about wp_list_pages: http://codex.wordpress.org/Template_Tags/wp_list_pages

    It should look like this to hide the "pages":

    <?php wp_list_pages('title_li=');?>

  5. theplastickid
    Posted 6 years ago #

    Such a simple fix. There are so many over blown solutions to this problem on the web none of which word properly! Thank you very much WizardRegis.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.