Forum Replies Created

Viewing 6 replies - 46 through 51 (of 51 total)
  • Thread Starter GenericBox

    (@genericbox)

    Do you think adding the register_nav_menu to a separate function on the init hook will make a difference?

    Instead of after_setup_theme

    Thread Starter GenericBox

    (@genericbox)

    Yes, it isn’t a child theme. But I got alot of …inspiration… from the TwentyTwelve theme.

    I do not have a nav Walker, and my only navigation registration function in functions.php is the same as TwentyTwelve:

    function LedDesign_Setup(){
    	register_nav_menu('primary-menu', __('Primary Menu'));
    
    	add_theme_support('post-thumbnails');
    	set_post_thumbnail_size(1600, 535);
    
    	add_action('wp_head', 'LedDesign_Banner');
    	add_action('wp_head', 'LedDesign_Enqueue');
    }
    
    add_action('after_setup_theme','LedDesign_Setup');
    Thread Starter GenericBox

    (@genericbox)

    My error – the TwentyEleven theme was showing no menu because it was not defined in wp-admin after changing themes.

    This has now been fixed for TwentyEleven and TwentyTwelve where the menu is working fine – however it is still displaying the technically non-existent menu on my custom theme.

    Thread Starter GenericBox

    (@genericbox)

    So currently I can have 3 menus:

    – The one I want with the TwentyTwelve theme.
    – The one that shouldn’t exist anymore on my Custom theme.
    – And the one that is just a page structure / no menu on the TwentyEleven theme.

    Thread Starter GenericBox

    (@genericbox)

    Switched to Default TwentyTwelve (http://dev.jamiepoole.me/leddesign/WordPress) didn’t fix issue. There are currently “no” menus defined in wp-admin.

    But I think that is because as above – it was just reverting to the page structure as no menu was present.

    I have re-added the menu and this is working in TwentyTwelve. However, when I switch back to my custom theme – or even TwentyEleven default theme – it is still reverting back to a/ The “old” menu on my custom theme, and b/ “no” menu on the TwentyEleven theme.

    Thread Starter GenericBox

    (@genericbox)

    I’ve searched the forums and there still doesn’t seem to be a definite answer – some people have just failed to correctly specify the menu and for others deleting the menu and re-creating seems to work.

    I have tried both of these solutions.

    Would appreciate if anyone can help out.

Viewing 6 replies - 46 through 51 (of 51 total)