my wp_nav_manu function is here:
<?php
wp_nav_menu(
array(
'theme_location' =>'main_nav',
'walker' => new customize_primary_menu()
)
); ?>
the walker class is :
<?php
class customize_primary_menu extends Walker_Nav_Menu
{
//echo 'sattarNaz'; exit;
function start_lvl($output, $depth = 0, $arg = array() ){
echo 'here';exit;
$indent = str_repeat("\t", $depth);
//print_r($output); exit;
$output = "\n$indent<ul class= \"sattar-menu\">\n";
}
}
Here I put this code just to see the sattar-menu as testing class. But when I inspect the DOM no such class found!. I recheck my code again and again. Any help will be great!