ThemeShaper Forums » Thematic

[closed]

Updated Thematic, No 'Home' Menu Link

(6 posts)
  • Started 3 years ago by chinchila_0
  • Latest reply from cambpete
  • This topic is resolved

Tags:

  1. chinchila_0
    Member

    Hi everyone,

    I just updated to Thematic 0.9.7.7, and now the function included in the child theme to create the 'Home' menu link no longer works. It just shows the name of the page ('Welcome!') as the link, but I don't want that. Does anyone know why this is happening?

    As well, this is my first Thematic update I've done on a site built with a child theme. Does each update make the widgets go back to default? Or could this be caused because I updated manually and not through Wordpress?

    Thanks!

    Posted 3 years ago #
  2. try this:

    function childtheme_menu_args($args) {
        $args['show_home']  = 'Home';
    
    	return $args;
    }
    add_filter('wp_page_menu_args','childtheme_menu_args');
    Posted 3 years ago #
  3. Think you need to add a priority 20 to this filter.

    Chris

    Posted 3 years ago #
  4. chinchila_0
    Member

    Thank-you, that worked!

    Does anyone have an answer to my second question? I have a couple other websites using Thematic, but I don't want to update to the latest version if it will reset my widgets to default and lose all the customization I have done. I would be updating these site through the Wordpress admin back-end.

    Posted 3 years ago #
  5. Chris you're right:

    function childtheme_menu_args($args) {
        $args['show_home']  = 'Home';
    
    	return $args;
    }
    add_filter('wp_page_menu_args','childtheme_menu_args', 20);

    Priority of 20 is needed.

    Posted 3 years ago #
  6. Thanks in general for the help on this forum - I'm getting to grips with WP customisation etc. and have been struggling to get 'home' showing in the menu and this post was the first that worked for me.

    Trying to understand why a priority of 20... I played around and found that anything above 10 suffices. This is because there's another filter on wp_page_menu_args within thematic that sets show_home to FALSE and it has a default priority of 10.

    Not essential knowledge but it's helped me understand what's going on!

    Posted 3 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.