• Resolved theblackbird070@gmail.com

    (@theblackbird070gmailcom)


    I recently installed wordpress 3.1.3 with the theme Manifesto v1.2 from WPzoom and I got a slight problem here. I have added my menu´s with my categories etc. but when I look at the blog there is something wierd next to the menu buttons. It says class=””> , I have been trying to fix this but I failed. So anyone please got any solutions? The website is: asinger.cz.cc . Thanks very much

    P.S. Does anyone know how to change the menu bar from left to right?

    Thanks for your time guys!

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter theblackbird070@gmail.com

    (@theblackbird070gmailcom)

    It is not about the theme! I get this class=””> also at all the other themes I install so Please got any solution?

    If it is happening on all themes, try activating the twenty ten theme and check!

    If it is on all themes it looks like you are using the WordPress custom menus with a mix of categories and pages, if so then check that you have not added anything in the ‘style part’ of the home or next menu item which is a categort?

    It does look like it is something to do with the menu’s home option!

    <li class="home">
    <a href="http://asinger.cz.cc" rel="nofollow">
    <img src="http://asinger.cz.cc/wp-content/themes/manifesto/images/men_icon_home.png" width="16" height="14" alt="" />
    </a>
    </li>class="">

    Check the code in header.php

    HTH

    David

    Thread Starter theblackbird070@gmail.com

    (@theblackbird070gmailcom)

    Thanks for your help!

    I will check the code in header. And yes I do have mixture of pages and categories in the menu that could be causing the problem. Btw when I removed all the categories/menu’s I still could see the class=””> next to the home icon so that will maybe the problem. Thanks for your support I will try that out and see if there are any solutions. Will tell the problem if I have fixed it 🙂

    Thanks for your time and support!

    Thread Starter theblackbird070@gmail.com

    (@theblackbird070gmailcom)

    Unfortunately I could find the code in header.php with wordpress appearance editor 🙁 here is the code:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Maybe I should look at the real header.php in a editor and not the wordpress appearance editor.

    The arguments for the menu include an empty menu class!

    $menu = wp_nav_menu( array('container' => '', 'container_class' => '', 'menu_class' => '', 'menu_id' => 'nav'

    So the menu returns <ul id="nav" class=""> and not <ul id="nav"> like the fall through menu ‘list_pages’

    So there are 22 characters if the custom menu is used.

    The post below is a hack and you should drop a line to the themes author, by registering and posting on their forum 🙂 !

    HTH

    David

    Ok I think we can make it work for both:

    Find:

    /*  now we remove the <ul> at the beginning of the generated menu, we will append it manually together with a <li></li> that contains are home icon */
    $menu = substr($menu, 13);

    Change to:

    /*  now we remove the <ul> at the beginning of the generated menu, we will append it manually together with a <li></li> that contains are home icon */
    if( has_nav_menu( 'primary' ) ) {
    	$menu = substr($menu, 22);
    }else{
    	$menu = substr($menu, 13);
    }

    This will work for both custom and standard, test this please report back and close this topic if it is resolved.

    HTH

    David

    Thread Starter theblackbird070@gmail.com

    (@theblackbird070gmailcom)

    Thanks very very much!!! It worked for me thanks for your time! ur amazing!! good luck with further coding =)

    I contacted the author, as I like to know if there is a fault with my themes.

    It might be worth checking if you can download a revision, and this updates the topic for anyone thinking about buying the theme and getting this in a search.

    Hello David,
    That problem has been fixed long time ago, the user is using an old version of the theme.
    Thanks for the link though.

    Best regards,
    Dumitru Brinzan
    WPZOOM

    HTH

    David

    Thread Starter theblackbird070@gmail.com

    (@theblackbird070gmailcom)

    Thanks BTW I have the v1.2 of that theme

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Need help with my new theme please!’ is closed to new replies.