• Hi,
    I’m trying to create my first website and I liked the look of Elegant Grunge. I wanted my home button to be a static page (no posts).

    – I’ve tried creating a new page called “Home” and going to Setting/Reading/Front page displays/ and selecting my new “Home” page as the front page but that created two “Home” pages on my site.

    – I’ve tried creating a new page with no title and selecting that as my home page under the same steps as above and that seemed to break the home page by adding an extra big grey line horizontally across the page.

    – I’ve tried going to the Appearance/Menu feature but there’s a message that comes up that says, “The current theme does not natively support menus, but you can use the “Custom Menu” widget to add any menus you create here to the theme’s sidebar.” and when I try and create a new menu button, nothing happens.

    I’m a novice to WordPress so I’m hoping I’m just missing something really obvious as I really like this theme and want it to work for my site.

    Thanks for any help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter pinkybo

    (@pinkybo)

    I found these instructions in the Codex – Creating a Static Front Page:

    “Navigation Bars
    Some themes have a top navigation bar containing links to Pages. By default most themes set “Home” as a link to the home page – in this case the static front page. Since you have created a separate page with the title “Home”, there is a likelihood of having two “Home” links in your menu.

    To remedy this, edit the appropriate template file featuring the code of the navigation bar with the template tag wp_list_pages. In 99.9% of WordPress themes, this is the header.php file. Set the parameters to change the link title. In some cases, commenting (disabling) or removing the the line in the theme’s code that displays the ‘Home’ link will do the trick.”

    I don’t know where to make this change. Can anyone please tell me where in the code I need to go to comment it out? This is the text from the header.php file:

    Please use a pastebin – mod
    THANKS!

    Thread Starter pinkybo

    (@pinkybo)

    Ok, I figured it out. I had to comment out line 71. It looks like this now:

    <!--
    		<li class="page_item <?php if ( is_home() ) { ?>current_page_item<?php } ?>"><a>"><?php _e('Home', 'elegant-grunge') ?></a>
    		-->

    I hope this helps other people who might have the same problem.

    helenbakker

    (@helenbakker)

    Hi Pinkybo,
    That indeed did the trick. Now what still kinda bothers me, eventhough it is not life-threathening, is the fact that the menu is being ordered alphabetically, and displays now the way I would like it to be. Any solution to that?
    Thanks in advance,
    Helen

    Michael

    (@alchymyth)

    look at the line after your edits:

    <?php wp_list_pages('title_li=&depth=1'); ?>

    wp_list_pages() can use the ‘sort_column’ and ‘sort_order’ parameters;

    http://codex.wordpress.org/Function_Reference/wp_list_pages#List_Pages_by_Page_Order

    http://codex.wordpress.org/Function_Reference/wp_list_pages

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Help with Home button in Elegant Grunge please’ is closed to new replies.