WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Extra home page I can't find or delete (25 posts)

  1. AmethystZ
    Member
    Posted 4 years ago #

    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
    http://www.stopstress.com.au

  2. alchymyth
    Forum Moderator
    Posted 4 years ago #

    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>
  3. esmi
    Forum Moderator
    Posted 4 years ago #

    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>

  4. AmethystZ
    Member
    Posted 4 years ago #

    I'll give it a go and let you knwo what happens, thanks so much :)

  5. AmethystZ
    Member
    Posted 4 years ago #

    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!

  6. edjonesorganist
    Member
    Posted 3 years ago #

    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... :-)

  7. erikshosting
    Member
    Posted 3 years ago #

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

  8. Darren
    Member
    Posted 3 years ago #

    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

  9. Darren
    Member
    Posted 3 years ago #

    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
  10. erikshosting
    Member
    Posted 3 years ago #

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

  11. Darren
    Member
    Posted 3 years ago #

    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]

  12. Darren
    Member
    Posted 3 years ago #

    Did I say anything wrong, can anyone assist. Please

  13. erikshosting
    Member
    Posted 3 years ago #

    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

  14. Darren
    Member
    Posted 3 years ago #

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

  15. Darren
    Member
    Posted 3 years ago #

  16. Darren
    Member
    Posted 3 years ago #

    What is pastebin

  17. Darren
    Member
    Posted 3 years ago #

    You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 't find or delete', '41', '103', '124.169.125.143', ' at line 21

  18. elfin
    Moderator
    Posted 3 years ago #

    [Moderator note: snipped code blocks, please use the pastebin as per the Forum Guidelines]

  19. Darren
    Member
    Posted 3 years ago #

    Could you please explain error message I am receiving using pastebin and I will most defiantly use the process you require. I do appreciate you have forum rules however I was with the idea that the matter I was dealing with was fairly simple for your support members and that it would have been corrected by now if you had not have keep deleting the code I have been pasting to this forum. As I did not until now know any of the rules of your forum, it would have been great to allow this matter to be finalised then notifying me by email of this issue.

  20. elfin
    Moderator
    Posted 3 years ago #

    We don't support the pastebin, we just utilise their services: http://wordpress.pastebin.com/help

  21. Darren
    Member
    Posted 3 years ago #

    This is the script from paste bin of the function.php. Hope it works could you please let me know if it does not.
    Thank you

  22. Darren
    Member
    Posted 3 years ago #

  23. Darren
    Member
    Posted 3 years ago #

    I have followed the rules is that not enough. any help please

  24. elfin
    Moderator
    Posted 3 years ago #

    probably because you posted in an old resolved thread.

    Probably best to start a new one, and my apologies I should have said that before.

  25. Darren
    Member
    Posted 3 years ago #

    Thank you for all that, have a nice day.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags