WordPress.org

Support

Support » Themes and Templates » Moving my page links into my header

Moving my page links into my header

  • theplastickid

    @theplastickid

    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • theplastickid

    @theplastickid

    Bump

    theplastickid

    @theplastickid

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

    wizardregis

    @wizardregis

    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=');?>

    theplastickid

    @theplastickid

    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Moving my page links into my header’ is closed to new replies.
Skip to toolbar