• Resolved sadhaka

    (@sadhaka)


    Sorry but this got posted in the wrong place, so I’m posting it again here (hope that’s right):

    This may seem a dumb question to experts – but how do I just add items to the default twentytwelve menu?

    At the moment after a new install the default has “home” and “sample page”. I want to add categories etc to it.

    How do I do that?

    I went to Appearance > Menus, but I couldn’t see any way of editing the existing (default) menu that’s already there – only an option to make a new menu. I don’t want to make a new one, I just want to add items to the default one that’s there.

    I should add that I’m actually using a child theme of the twentytwelve menu, if that makes any difference (I don’t see that it does, because when I switch back to the actual twentytwelve theme, I have the same problem)

Viewing 8 replies - 16 through 23 (of 23 total)
  • WPyogi

    (@wpyogi)

    No, menu changes in the parent theme are not carried over to the child theme. So you should set up the child theme first – and only make changes there.

    That’s good you reinstalled WP.

    Thread Starter sadhaka

    (@sadhaka)

    Thanks very much for that clarification. Hopefully now it’ll actually work!

    Thread Starter sadhaka

    (@sadhaka)

    Well much to my dismay, the same thing is happening. After activating my child theme, I go to Appearance > Menus, type “main” in the box at the top for a new menu, and then I get a blank page (wp-admin/nav-menus.php).

    I see these PHP errors:

    [12-Mar-2013 13:05:46] PHP Warning: Invalid argument supplied for foreach() in /[path]/wp-admin/includes/menu.php on line 18
    [12-Mar-2013 13:05:46] PHP Warning: uksort(): The argument should be an array in /[path]/wp-admin/includes/menu.php on line 183
    [12-Mar-2013 13:05:46] PHP Warning: array_keys(): The first argument should be an array in /[path]/wp-admin/includes/menu.php on line 218
    [12-Mar-2013 13:05:46] PHP Warning: array_pop(): The argument should be an array in /[path]/wp-admin/includes/menu.php on line 219
    [12-Mar-2013 13:05:46] PHP Fatal error: Cannot use string offset as an array in /[path]/wp-admin/includes/menu.php on line 220
    [12-Mar-2013 13:06:48] PHP Warning: Invalid argument supplied for foreach() in /[path]/wp-admin/includes/menu.php on line 18
    [12-Mar-2013 13:06:48] PHP Warning: uksort(): The argument should be an array in /[path]/wp-admin/includes/menu.php on line 183
    [12-Mar-2013 13:06:48] PHP Warning: array_keys(): The first argument should be an array in /[path]/wp-admin/includes/menu.php on line 218
    [12-Mar-2013 13:06:48] PHP Warning: array_pop(): The argument should be an array in /[path]/wp-admin/includes/menu.php on line 219
    [12-Mar-2013 13:06:48] PHP Fatal error: Cannot use string offset as an array in /[path]/wp-admin/includes/menu.php on line 220

    Can anyone help me out please!!!

    Thread Starter sadhaka

    (@sadhaka)

    BTW – I have no plugins at all in this fresh install.

    What could possibly be causing this? Any ideas??

    WPyogi

    (@wpyogi)

    Maybe your child theme is not set up correctly. Does the parent theme do the same thing?

    Thread Starter sadhaka

    (@sadhaka)

    @wpyogi – I just tried to do it with the parent theme (twenty twelve) and it was successful.

    I then activated my child theme and the menu I created in the twenty twelve theme was there as well – so it DID carry on to the child theme.

    So as far as I can see, when editing the existing default menu with a child theme, one should first edit it in the parent theme, and then switch to the child theme, and then it’ll work.

    WPyogi

    (@wpyogi)

    If it’s working excellent!

    Thread Starter sadhaka

    (@sadhaka)

    Yes, at last.

    So, a note to anyone trying to edit the default menu in twenty twelve: define the menu firstly with the twenty twelve theme activated, then switch to your child theme, and it should carry over to that child theme, and you can go from there.

Viewing 8 replies - 16 through 23 (of 23 total)
  • The topic ‘How to add items to default twentytwelve menu?’ is closed to new replies.