Drop down menu help in theme

Discussion in 'WordPress' started by remi1210, Oct 18, 2011.

  1. #1
    Hello, I'm new to WordPress(.org, to be clear) and have done my due diligence regarding this subject, so please do not refer me to other posts that do not fully resolve this issue...I have installed the latest version of the theme "Greyzed" 1.0.4 from wordpress.org (not wordpress.com). Like others, in my appearance > menu > theme locations it says "this theme does not support native custom menu" although the Greyzed theme description says that it allows drop down menus. When I activate other themes my drop down menus work perfectly. My question is whether I need to modify the style.css or another .php in the editor? Anyone know a script that I can use to resolve this that is familiar with this theme?Here's the site, haven't put any info in yet based on not having the dropdowns. youbooze.comPlease help, Thanks in advance!
     
    Last edited: Oct 18, 2011
    remi1210, Oct 18, 2011 IP
  2. twowebros

    twowebros Active Member

    Messages:
    42
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    93
    #2
    Hii,

    just add in your theme's functions.php:

    register_nav_menus( array(
    'primary' => __( 'Primary Navigation', 'twentyten' ),
    ) );
    and now you can create menus

    thanks
    2webrosTeam
     
    twowebros, Oct 19, 2011 IP
  3. remi1210

    remi1210 Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks for the reply. Can I add that anywhere in the functions.php or do i need to replace some other script?
     
    remi1210, Oct 19, 2011 IP
  4. twowebros

    twowebros Active Member

    Messages:
    42
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    93
    #4
    add anywhere you want i suggest to add it in bottom of the file
     
    twowebros, Oct 19, 2011 IP
  5. remi1210

    remi1210 Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    @twowebros: I added the register_nav_menus( array('primary' => __( 'Primary Navigation', 'twentyten' ),) );

    All that I got was the following message with no access to my admin pages
    Parse error
    : syntax error, unexpected '<' in /home/youboo5/public_html/wp-content/themes/greyzed/functions.php on line 329
     
    remi1210, Oct 19, 2011 IP
  6. twowebros

    twowebros Active Member

    Messages:
    42
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    93
    #6
    ok try one thing add it on top remove from bottom add it before this

    if ( function_exists('register_sidebar') ) {
    register_sidebar(array(
    'name' => 'Sidebar 1',
    'before_widget' => '<li id="%1$s" class="widget %2$s">',
    'after_widget' => '</li>',
    'before_title' => '<h2 class="widgettitle">',
    'after_title' => '</h2>',
    ));

    }
     
    twowebros, Oct 19, 2011 IP
  7. remi1210

    remi1210 Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I appreciate the help, however, no matter what I do all I get is the same message

    Parse error: syntax error, unexpected '<' in /home/youboo5/public_html/wp-content/themes/greyzed/functions.php on line 329


    I cannot access any other parts of the admin site regardless what I do. And I did restore all of the original functions.php
     
    remi1210, Oct 19, 2011 IP