• I have created a home page as a static page and find that I now have two! From looking through the forums, other people have clearly been here before me – and had good advice about how to sort it out. The advice seems to be to go to the header.php and delete the following

    • /”>Home
    • <?php wp_list_pages(‘title_li=’); ?>

    but, try as I might, I can’t find that code in my header php (I’m using the weaver theme).

    The url to the site I’m putting togeether is https://www.loubes-bernac-cottage.com

    any advice much appreciated

Viewing 5 replies - 1 through 5 (of 5 total)
  • weaver is based on twenty ten, where this ‘home’ is set in functions.php;
    code from Twenty Ten functions.php:

    function twentyten_page_menu_args( $args ) {
    	$args['show_home'] = true;
    	return $args;
    }
    add_filter( 'wp_page_menu_args', 'twentyten_page_menu_args' );

    change true to false

    (i don’t know if this is exactly the same in weaver)

    Thread Starter rjksduncan

    (@rjksduncan)

    I found ‘functions.php’ but doesn’t seem to have much in it. Only as follows:

    function weaver_continue_reading_link() {
    /* very simple example – override the read more text… */
    $msg = ‘[CLICK TO READ MORE]’;
    return ‘ ‘ . $msg . ‘‘;} ?>

    which doesn’t appear to be what i need. Am I missing something or does that mean it must be somewhere else in Weaver?

    there is this code in functions.php:

    if ( ! function_exists( 'weaver_page_menu_args' ) ) :	/* let child do this if it wants */
    function weaver_page_menu_args( $args ) {
        if (weaver_getopt('ttw_menu_nohome'))
    	$args['show_home'] = false;
        else
    	$args['show_home'] = true;

    which leads to assume that there is an option in the dashboard thme options to suppress the ‘home’ link; if you can’t find it, change the code in functios.php.

    weaver also has its own forum – web search ‘weaver theme forum’

    Thread Starter rjksduncan

    (@rjksduncan)

    Thanks very much for your help – I’ll have a look at that. Thanks also for the top about the weaver forum.

    Thread Starter rjksduncan

    (@rjksduncan)

    You were right – there is a check box under Dashboard/ Weaver Options/ Mainn options/ Header options, to chek ‘No Home menu item’ – and lo & behold the second home tab has disappeared.

    However, just when I think I can relax … when I click back on the url although there is only one home tab showing, teh message displayed on the screen is:

    Not Found
    Apologies, but the page you requested could not be found. Perhaps searching will help.

    Clicking on the home tab takes me to the home page I have created, but not brilliant to have an error message on the opening page!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Trying to get rid of second home page’ is closed to new replies.