Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #29292
    jplatenius
    Member

    Hi —

    Thanks for the great theme.

    I’m hoping to hide the “Home” navigation item on the main menu. Any suggestions?

    Thanks,
    -jp

    #29299
    jplatenius
    Member

    Never mind, thanks — found it in catchkathmandu-functions.php:

    $args['show_home'] = true;
    changes to
    $args['show_home'] = false;

    No need for a response.

    Cheers.

    #29386
    Sakin
    Keymaster

    @jplatenius: Did you change that directly in core theme file catchkathmandu-functions.php? Please don’t edit any core theme files directly, as these theme files will be reverted back to original when you update the theme.

    So, to remove the home. Either you just build “Custom Menu” from “Appearance => Menus” and assign location to your menu. This Custom Menu will replace your Page Menu.

    But if you want to keep your page menu and just remove the home then you need to build child theme, create functions.php file in your child theme and add the following code:

    <?php
    /**
     * Catch Kathmandu Child functions and definitions
     */
    // Removing the Default Action Hook
    function unhook_catchkathmandu_functions() {
    	remove_filter( 'wp_page_menu_args', 'catchkathmandu_page_menu_args' );
    }
    add_action( 'init', 'unhook_catchkathmandu_functions' );
Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Hide "Home" Menu Link’ is closed to new replies.