WordPress.org

Ready to get started?Download WordPress

Forums

No "Home" menu item on my site - Andreas theme (20 posts)

  1. elliekennard
    Member
    Posted 3 years ago #

    In this blog, I have no Home link.Now I see where in the Header it is within the 'Hide' class. But if I remove that, of course it is just text that appears, not a menu item.
    http://www.elliemunroe.ca

    Just can't seem to see where I can get this to show.

    Many thanks,
    Ellie

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    Try creating a custom menu.

  3. elliekennard
    Member
    Posted 3 years ago #

    Woops! Created one and every single one of my subscribers (subscribe2 plugin) got sent an email for each menu item! #embarrassing

    Many thanks for the suggestion, though.

    How do I set position etc. of this menu? Not sure how the CSS will affect it and I see no help in the link you provided.

  4. esmi
    Forum Moderator
    Posted 3 years ago #

    If your theme doesn't have any pre-defined menu locations (see the top right of the Menus page), you can just add it to the sidebar like any other widget via Appearance->Widgets.

  5. elliekennard
    Member
    Posted 3 years ago #

    My theme (Andreas) does not have any pre-defined menu locations. I added it to the sidebar like any other widget and it then appeared in duplicate.

    Is there no way on a wordpress theme such as Andreas to actually have a "Home" link appear on all pages except home, without creating a custom menu? Most people will not know to click on the name at the top of the blog, so many are not very browsing literate.

    It just seems so basic.

  6. esmi
    Forum Moderator
    Posted 3 years ago #

    it then appeared in duplicate

    You had 2 custom menus? Or you had 1 custom menu and 1 original page menu?

    Is there no way on a wordpress theme such as Andreas to actually have a "Home" link appear on all pages except home, without creating a custom menu?

    Not unless you're very comfortable with using PHP., HTML and, possibly, CSS.

  7. elliekennard
    Member
    Posted 3 years ago #

    I had 2 of the same custom menus appear, one above the other.

    I am relatively comfortable with HTML, CSS and can try to figure things out a bit in PHP as I have done a few things with it on this site and others.

  8. esmi
    Forum Moderator
    Posted 3 years ago #

    In that case, does your sidebar template file use wp_list_pages()? Or wp_page_menu()?

  9. elliekennard
    Member
    Posted 3 years ago #

    neither are listed there.

  10. esmi
    Forum Moderator
    Posted 3 years ago #

    Were you using the Pages widget previously? If so, what happens if you remove all widgets from the sidebar?

  11. elliekennard
    Member
    Posted 3 years ago #

    No, I have no widgets in the sidebars at all.

    Did not use the pages widget.

    My PHP shows nothing for the left sidebar just shows the ul for the right sidebar with the different elements. (again, no widgets)

    Got to go to bed now, back tomorrow, will check first thing.

    Thanks

  12. elliekennard
    Member
    Posted 3 years ago #

    Hi Esmi,

    Any suggestions as to what might get me that Home link at the top of my menu? I might exclude it from the opening page if that were possible, but otherwise it's better to have it on all than on none.

    Cheers!

    Ellie

  13. esmi
    Forum Moderator
    Posted 3 years ago #

    My PHP shows nothing for the left sidebar

    So what was being used to list your Pages?

  14. elliekennard
    Member
    Posted 3 years ago #

    I can see no reference that I recognize in any of the PHP files to the left sidebar.

    Plenty of reference to the right sidebar content.

    Nonetheless I see menu items there, just no Home link which I would like...

  15. esmi
    Forum Moderator
    Posted 3 years ago #

    Can you drop a copy of the left sidebar template file into the WordPress pastebin and post the pastebin url here. Perhaps someone will be able to spot the problem and suggest a solution.

  16. elliekennard
    Member
    Posted 3 years ago #

    I will Esmi
    I don't seem to have a left sidebar file. Just the sidebar file. I will paste the code from that.

  17. elliekennard
    Member
    Posted 3 years ago #

  18. esmi
    Forum Moderator
    Posted 3 years ago #

    That's the right sidebar. The left sidebar is someplace else. Perhaps within header.php?

  19. elliekennard
    Member
    Posted 3 years ago #

  20. elliekennard
    Member
    Posted 3 years ago #

    Okay, I found this here:

    Display Home as a Page

    The following example causes "Home" to be added to the beginning of the list of Pages displayed. In addition, the Pages wrapped in a div element, Page IDs 5, 9, and 23, are excluded from the list of Pages displayed, and the pages are listed in Page Order. The list is prefaced with the title, "Page Menu",
    <h2>Page Menu</h2>
    <?php wp_page_menu('show_home=1&exclude=5,9,23&menu_class=page-navi&sort_column=menu_order'); ?>

    I have now added the code adjusted the css and the menus are as I hoped.

    Many thanks for working through this with me, Esmi. It took a little digging on my part once you pointed me in the right direction.

    Cheers!

    Ellie

Topic Closed

This topic has been closed to new replies.

About this Topic