• Hi

    When I add a page it does not show up on my website. I want the new page to be added in the header next to the ‘Home’ link. How can this be done please? I assume there is something missing in my theme.
    My website is BritneyParisHilton.com

    Thanks for your help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Looks like your theme is designed to list categories in that top bar – not pages. You’d first need to edit header.php and replace wp_list_categories() with wp_list_pages(title_li&depth=1').

    Then you’d need to edit style.css and change:

    #nav li a:hover, #nav li a:active, .current-cat {
    background:transparent url(images/nav-backgr-hover.png) repeat 0 0;
    color:#FFFFFF;
    display:block;
    margin:0 3px;
    padding:10px 12px;
    text-decoration:none;
    }

    to

    #nav li a:hover, #nav li a:active, .current-page {
    background:transparent url(images/nav-backgr-hover.png) repeat 0 0;
    color:#FFFFFF;
    display:block;
    margin:0 3px;
    padding:10px 12px;
    text-decoration:none;
    }
    Thread Starter hesam15uk

    (@hesam15uk)

    Thanks for your reply. I made the changes but for some reason the text wp_list_pages(title_li&depth=1′) appears next to the home link and the pages are still not displayed. Please take a look at the website to see what I mean.

    Make sure that you have an opening PHP tag (<?php) and a closing tag (?>) around wp_list_pages.

    Thread Starter hesam15uk

    (@hesam15uk)

    Thanks. When I used wp_list_pages(title_li&depth=1′) the page did not load up but when I removed the stuff in the bracket it worked fine. However the only issue now is that in the header there is a text which says ‘Pages’ next to ‘Britney Paris Hilton Stories’. Any ideas how I could get rid of this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘When I add a page it does not appear on the website. Please help!’ is closed to new replies.