Forums

When I add a page it does not appear on the website. Please help! (5 posts)

  1. hesam15uk
    Member
    Posted 2 years ago #

    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.

  2. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    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;
    }
  3. hesam15uk
    Member
    Posted 2 years ago #

    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.

  4. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

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

  5. hesam15uk
    Member
    Posted 2 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic