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
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!
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
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
Thanks BTW I have the v1.2 of that theme