Support » Themes and Templates » 2x Homepage at Squirrel 1.4 theme

  • Hi, I am relatively new to using WordPress and all codes. Am trying to make a website run here: http://www.de-afsprakenmanager.nl but I got twice the Homepage in my menu. I tried to delete the only visible homepage in the pagesscreen but then the whole frontpage was gone.

    Anyone any advise?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Use current WordPress menu management capabilities. Do these two simple things.

    Edit functions.php and add:

    add_action( 'init', 'register_my_menus' );
     
    function register_my_menus() {
    register_nav_menus(
    array(
    'menu-1' => __( 'Menu 1' ), //Can be renamed as desired
    'menu-2' => __( 'Menu 2' )
    )
    );
    }

    Next add to your header.php where you want the menu to appear:

    <?php wp_nav_menu( array( 'theme_location' => 'menu-1' ) ); ?>

    Now you can use the built in menu editing in the WordPress backend.

    Thread Starter klaasjanpiet

    (@klaasjanpiet)

    Thanks Flashbuddy, I tried this but I think this is not what I am looking for. I simply have 2 homepages and want 1.

    I want the menu to appear where it currently is, I only want the 2 Homepages combined to 1.

    No, you are wrong, this is exactly what you are looking for but sadly you don’t understand.

    Tell us what theme you are using.

    Copy your header code that calls the menu into pastebin and we’ll take a look.

    Thread Starter klaasjanpiet

    (@klaasjanpiet)

    Hehehe, ok. Sorry.

    I am using Squirrel 1.4 theme. It is the picture on this page https://themes.trac.wordpress.org/ticket/7920. It can be downloaded in the WP themes collection.

    Thread Starter klaasjanpiet

    (@klaasjanpiet)

    Sorry, hadn’t read your last sentence…. here is the headercode:

    [ Code moderated. For more than 10 lines of code please pastebin.com instead. ]

    Great theme. There is built in support for WordPress menus. Are you using that support?

    Watch my short video that explains adding and editing the menu in the squirrel theme:

    Video>>

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘2x Homepage at Squirrel 1.4 theme’ is closed to new replies.