How to switch menu location in this header.php?

As far as I understand this would be one of the menus: $et_secondary_nav = $et_secondary_nav_items->secondary_nav; And this is the other: $primaryNav = wp_nav_menu( array( ‘theme_location’ => ‘primary-menu’, ‘container’ => ”, ‘fallback_cb’ => ”, ‘menu_class’ => $menuClass, ‘menu_id’ => ‘top-menu’, ‘echo’ => false ) ); This is where the first menu gets displayed: if ( ” … Read more

javascript i wrote not working, can’t figure out why [closed]

Have you looked at the debugging the javascript code? It shows bunch of errors when you run your fiddle. such as Uncaught ReferenceError: openDisplay is not defined at HTMLButtonElement.onclick ((index):181) and this one too once you fix the above one Uncaught TypeError: document.getElementsById is not a function at openDisplay ((index):164) This one is because there … Read more

calling JS to custom menu design

Surely. function loadMenuScripts() { wp_enqueue_script( ‘main’, get_template_directory_uri() . ‘js/main.js’, array( ‘jquery’ ), ”, false ); } add_action( ‘wp_enqueue_scripts’, ‘loadMenuScripts’ ); Additionally, if you need to load it in the footer, go ahead and change the action to: add_action( ‘wp_footer’, ‘loadMenuScripts’ ); Also, it seems as if this is an option for users. Before enqueueing, check … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)