Snippets repository for WordPress developpers

Browse
// functions.php
function luckywp_output( $args ) {
  $args = array(
    'container' => 'nav',
    'container_class'	=> 'main-menu',
    'items_wrap' => '<ul>%3$s</ul>',
    'menu_id'	=> '',
    'menu_class' => ''
  );
  return $args;
}
// add the filter 
add_filter( 'lwpamf_wp_nav_menu_args', ' luckywp_output', 10, 2 ); 

Warning: Trying to access array offset on null in /home/clients/7f7a8d8eb6e40c50d3548b06c548734d/web/wp-includes/class-wp-query.php on line 3766

Categories

Tags