feggbert
Forum Replies Created
-
Forum: Plugins
In reply to: [Breadcrumb NavXT] [Plugin: Breadcrumb NavXT] Parent pages not showingOk, that did that. I put “Home” instead of “Blog” into field “Home title”. Thanks! But now all other pages carry the “Home” link as well. Even the once beyond “Finance”. I checked all the other options but cannot find an option that avoids this. Did I miss anything?
Thank you!
Forum: Plugins
In reply to: [Breadcrumb NavXT] [Plugin: Breadcrumb NavXT] Parent pages not showingHi John,
thank you for your message. Yes this was it! I was distracted by the new custom menu feature of wordpress and forgot to set the pages hierarchy accordingly.
However the “Home” branch has always been configured with proper parent-child settings. But only in this section it does not show up properly. Compare it to the “Finance” section where it works fine…
Any clue?
Thanks for your great help!
Felix
Forum: Fixing WordPress
In reply to: wp_nav_menu: List only 2nd level (separate submenu)?johnny, at the moment i just hid it through css…not pretty but works for my client…
Forum: Plugins
In reply to: [Breadcrumb NavXT] [Plugin: Breadcrumb NavXT] Parent pages not showingHi,
this is the link: https://bit.ly/bjRS4r
I am using only pages at the moment since we try to use WP as a CMS. We are going to add a news section where the posts are going to be shown.
Thanks!
Forum: Plugins
In reply to: [Breadcrumb NavXT] [Plugin: Breadcrumb NavXT] Parent pages not showingThanks for your answer. My theme does not use the sidebar…
Forum: Fixing WordPress
In reply to: wp_nav_menu: List only 2nd level (separate submenu)?Well thanks again for the nice snippet. It works nicely! Maybe you can tell me one more thing: How do I get rid of the parent item in the generated list…
Right now the list hierarchy is like this:
<ul><li> <a> Parent </a> <ul> <li> Child 1 </li> <li> Child 2 </li> <li> Child 3 </li> </ul> </li></ul>
So basically I don’t need the
<a> Parent </a>
or even the surrounding<ul>
and
<li>
….Any idea? Still can’t believe this function isn’t built in from the beginning…
Thanks a lot!
Felix
Forum: Fixing WordPress
In reply to: wp_nav_menu: List only 2nd level (separate submenu)?Dude, you’re the man! Seems to work nicely for my menu, except for menuitems without sub-hierarchy there is an error
Warning: in_array() [function.in-array]: Wrong datatype for second argument in /wp-content/themes/aoc/functions.php on line 80
Which refers to this line of code:
// Checks if the current element is in the current selection if (strpos($class_names, 'current-menu-item') || strpos($class_names, 'current-menu-parent') || strpos($class_names, 'current-menu-ancestor') || in_array( $item->menu_item_parent, $found_parents ) ) {
This also occurs in a few more lines further down all using $found_parents…
Thanks for your great help! (Too bad this functionality is not implemented in wp_nav_menu from the beginning…)
Felix
Forum: Fixing WordPress
In reply to: wp_nav_menu: List only 2nd level (separate submenu)?Wouldn’t it be possible to use a pgrep_replace? I have no idea how to set the RegExp…