Sometimes you may need to access your top menu link on your mobile devices, but in our themes this work only like a dropdown toggler. This code may help you:
jQuery(function ($) { $('#nk-nav-mobile .dropdown').each(function () { var $this = $(this); var $item = $this.prev('a'); if ($item.length) { $this.children('li:not(.bropdown-back):eq(0)').before($('<li>').append($item.clone())); } }); });
Menu items will be added here:
Please, read documentation of your theme and basic WordPress documentation:
The most of functionality in our templates and themes made by using JavaScript. But sometimes you need to disable it in your browser and menu dropdowns will not work. The solution is simple - just add these styles in noscript section:
<noscript> <style type="text/css"> .nk-navbar .nk-nav .nk-drop-item:hover > .dropdown { display: block; opacity: 1; } </style> </noscript>
To show preloader you need to make some custom animation. This one:
function openPreloader () { Godlike.openPreloader(); var $content = jQuery('.nk-preloader').find('.nk-preloader-content, .nk-preloader-skip'); TweenMax.to($content, 0.3, { y: '0px', opacity: 1, display: 'block', force3D: true }); } // run openPreloader();
To hide preloader just run default Godlike function:
// run Godlike.closePreloader();