WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Need help with my new theme please! (11 posts)

  1. theblackbird070@gmail.com
    Member
    Posted 3 years ago #

    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!

  2. esmi
    Forum Moderator
    Posted 3 years ago #

  3. theblackbird070@gmail.com
    Member
    Posted 3 years ago #

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

  4. Digital Raindrops
    Member
    Posted 3 years ago #

    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

  5. theblackbird070@gmail.com
    Member
    Posted 3 years ago #

    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!

  6. theblackbird070@gmail.com
    Member
    Posted 3 years ago #

    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.

  7. Digital Raindrops
    Member
    Posted 3 years ago #

    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

  8. Digital Raindrops
    Member
    Posted 3 years ago #

    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

  9. theblackbird070@gmail.com
    Member
    Posted 3 years ago #

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

  10. Digital Raindrops
    Member
    Posted 3 years ago #

    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

  11. theblackbird070@gmail.com
    Member
    Posted 3 years ago #

    Thanks BTW I have the v1.2 of that theme

Topic Closed

This topic has been closed to new replies.

About this Topic