Not active reference Wordpress



  • There's a menu, there's a Foto point. How do you not act?

    The menu in the hedere is caused by a line <?php wp_nav_menu('menu=first'); ?>

    The menu itself is declared in Fanxen.

    function register_main_menus() {
        register_nav_menus(
            array(
                'nav' =>__('Меню навигации'), 
            )
        );
    }
    

    введите сюда описание изображения



  • The designer of the menu of the Wardress, in addition to the general classes, assigns to each item unique id. Let's say, "Foto" id. menu-item-7773, then with jQuery, it's decided:

    $('#menu-item-7773>a').on('click', function(e){
    e.preventDefault(); //отменяем переход по ссылке
    });
    



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2