I need to custumise my walkermenu in wordpress, but i have an issue with it, this is my menu structure, I need to add, a div after my ul sub-menu, like the ffect in mega menu :
<nav class="navbar-collapse collapse">
<ul class="navbar-nav">
<li clas
In order to use the right classes for the menu in my theme I am using a custom nav menu walker. I've noticed my Home page always get the active class applied even when I am on another page.
In my walker I am checking $item->current to decide whether or not to apply that class, but it se
I am trying to add the featured image of posts to my mega menu. I want to display the featured image inside a div tag. How would i add the featured image inside of a sprintf function?
$thumbnail = '';
if ( has_post_thumbnail( $item->object_id ) ) {
$thumbnail = the_post_th
I'm using a custom walker to display a mega menu. I've enabled Descriptions in the menu admin but I can't get it to display in my menu. My description is on the parent item but I need to display it on the mega menu but before the sub-menu.
class Child_Wrap extends Walker_Nav_Menu {
I'm trying to create bootstrap collapsing navbar for WordPress template. I have to add some HTML properties such as data-toggle , after researching I found that must customize the Walker class but start_lvl and start_el just effecting on sub menu
Generally how can I create bootstrap collap
How to make this pattern using Walker_Nav_Menu?
<ul class="nav navbar-nav">
<li><a href="portfolio.html">Portfolio</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Pages <i
Currently I'm working on a project where we need to append the parent title as first item in the submenu for a mobile menu.
What I try to achieve is this:
<ul class="menu">
<li>
<a href="linktomenu">Level 0 item</a>
<ul class="subme
I have a custom walker menu.( See the code below)
I would like to have my nav menu like this:
Where 495 is the total of the records containing childrens.