WordPress.org

Ready to get started?Download WordPress

Forums

Moving my page links into my header (5 posts)

  1. theplastickid
    Member
    Posted 4 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--->
    
    </div>

    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.
    Thanks.

  2. theplastickid
    Member
    Posted 4 years ago #

    Bump

  3. theplastickid
    Member
    Posted 4 years ago #

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

  4. wizardregis
    Member
    Posted 4 years ago #

    To solve the link and visited problem, just change

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

    to

    #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
    Member
    Posted 4 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

Tags

No tags yet.