• Resolved AmethystZ

    (@amethystz)


    I must be going nuts and this has never happened before for me with other sites I’ve built.

    There’s an extra page called home on the site I didn’t create, can’t get rid of and can’t edit cos I can’t find it.

    I’ve done the obvious and created a new “home1” page and told WordPress that “Home1” is the new static home page but I still have this other page called “Home” that I never created and can’t even locate. This is driving me batty!

    Do I ahve to reinstall WordPress again or have I done something so dam stupid and I can’t see it?
    Help really appreciated.
    Smiles,
    Ziggy
    https://www.stopstress.com.au

Viewing 15 replies - 1 through 15 (of 24 total)
  • Michael

    (@alchymyth)

    look into header.php and see if this ‘home’ is hardcoded into the horizontal navigation. you might find some code similar to this:

    <div id="nav">
    			<ul>
    				<li class="page_item "><a href="<?php ... ?>">Home</a></li>
    <?php wp_list_pages....

    if so, you can delete the hard-coded link:

    <li class="page_item "><a href="<?php ... ?>">Home</a></li>

    esmi

    (@esmi)

    The unwanted Home link has been hardcoded into your current theme. Try editing your theme’s header.php file and deleting:

    <li class="page_item "><a href="<?php bloginfo('url');?>">Home</a></li>

    Thread Starter AmethystZ

    (@amethystz)

    I’ll give it a go and let you knwo what happens, thanks so much ??

    Thread Starter AmethystZ

    (@amethystz)

    It worked! I love you folks! )
    Seriously though I am grateful, it was doing my ehad in. Now I can finish the build properly. Thanks so much!

    Hey hey,

    I’m trying to do the same but can’t find this

    <li class=”page_item “>“>Home

    anywhere. It’s not in my header.php. and cant find it anywhere in the coding.

    I’m using WP 3.0.1

    Please help… ??

    PEBKAC!

    As a plugin author its a real bummer when people say its broken, when its not.
    Thisthread accuses ‘extra page’ of being broken, but infact its actually just a piece of the theme template. and its not even a defect or bug over there. its just the link to the dynamic front page

    @edjonesorganist – provide a link. or try searching for ‘home’ instead of that big string. your theme might not have the li class labeled as page_item….. or why not see if there is a file called ‘navigation.php’ and look in there too……

    ..unfounded ‘broken’ votes make me a saad panda..

    Darren

    (@hazesecurity)

    Hello I have same issue, and have just started to use word press can you please direct me were to find header.php for Home page not I can’t find to delete sorry to be so basic but need to know to fix my issue. Thank you

    Darren

    (@hazesecurity)

    I found header.php but could not find – <div id=”nav”>

      <li class=”page_item “>“>Home
      <?php wp_list_pages…. Could someone please advise before I stuff something up.
      Thank you

    @hazesecurity
    try searching for a smaller portion of the string.. Or even including a link for us to look at.

    Bottom line is this.. The code that generates the ‘Home’ link is different in every theme. Even its location in the header is not a sure bet.
    Try this, open header.php and search for just the word ‘Home’. See if that helps. If not, take a look at the files in your theme directory. Maybe there is a file called nav-bar.php or something similar and header.php references it. Try looking in there (if it exists) and seeing if you can find the word ‘home’?
    Hope this helps.

    Darren

    (@hazesecurity)

    Not that familiar with code have most of header.php code here if you could explain what part of this is to be remove would be much appreciated.

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Darren

    (@hazesecurity)

    Did I say anything wrong, can anyone assist. Please

    it generates that link in a function, then the header calls it as a hook

    send me the url to your site, and copy/paste your themes function.php to pastebin and link here

    Darren

    (@hazesecurity)

    Hello erikshosting

    Thank you for your assistance

    The following URL links to my home page with no content.

    [Large code excerpt removed by moderator per forum rules. Please use the pastebin for all large code excerpts. ?It works better anyway.]

    Darren

    (@hazesecurity)

    Darren

    (@hazesecurity)

    What is pastebin

Viewing 15 replies - 1 through 15 (of 24 total)
  • The topic ‘Extra home page I can’t find or delete’ is closed to new replies.