• Resolved bowbow7

    (@bowbow7)


    Hello, When I have a submenu the parent cannot be clicked even if it has the link already in the html.

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Jegstudio

    (@jegstudio)

    Hello @bowbow7,

    We apologize in advance for our delay in responding. We don’t make parent menu links clickable because to access the sub-menus you have to click or hover over the parent menu. If you want to make the parent menu link clickable, you can try adding the PHP code in the link below to your functions.php.

    Pastebin: https://pastebin.com/YKGYbhLC

    Thank You

    Thread Starter bowbow7

    (@bowbow7)

    Thank you alot,
    The given php code works fine, but I would recommend to add it to the plugin as it is important for most of the users, in case they don’t want to be clickable they can simply add a # and after that they can remove it from the menu bar.

    Plugin Author Jegstudio

    (@jegstudio)

    Hello @bowbow7,

    Thank you for your input. We’ll try to reconsider and test it first. We don’t promise to provide it in the next update, we hope you can wait for it.

    Since the PHP code works fine, we will mark this forum as resolved. If you have any other questions, feel free to create a new forum.

    Thank You

    Thread Starter bowbow7

    (@bowbow7)

    Hello, Sorry we just noticed that the current code works fine on desktop but doesn’t on mobile.

    on mobile, the dropdown work but we cant click the parent

    please use this link for testing on mobile.

    Thank you

    Plugin Author Jegstudio

    (@jegstudio)

    Hello @bowbow7,

    To achieve this please disable the Sub Menu Click On Text configuration so the parent menu link can be clicked.

    1-1

    Thank You

    Thread Starter bowbow7

    (@bowbow7)

    Thank you for the help yes it worked but I fixed the code to something like this

    /** Make Parent Menu Clickable */
    function make_parent_menu_clickable() {
    	?>
    	<script>
    		(function($) {
    			$(window).on('load', function() {
    				var $wrapper = $('.jeg-elementor-kit.jkit-nav-menu');
    				$wrapper.find('li.menu-item-has-children > a').each(function() {
    					$(this).unbind();
    					console.log($wrapper)
    					
    					$(this).on('click', function(e) {
    			                   dropdown.addClass('dropdown-open')
    					})
    				});
    			})
    		})(jQuery)
    	</script>
    	<?php
    }
    add_action( 'wp_footer', 'make_parent_menu_clickable' );

    and it worked fine on mobile with the setting above in elementor

    • This reply was modified 2 years, 7 months ago by bowbow7.
    Plugin Author Jegstudio

    (@jegstudio)

    Hello @bowbow7,

    We’re glad to know that, if this issue is resolved don’t forget to mark this forum as resolved.

    Thank You

    Thank you for the solutions here.

    I agree with @bowbow7, @jegstudio that the option to click the parent link should be part of the plugin, and not an additional code.

    For us the mobile version worked without having to change the setting “Sub Menu Click On Text”, but we have a different menu set up for Mobile.

    Plugin Author Jegstudio

    (@jegstudio)

    Hello @pepbo,

    We apologize for the delay in our response. The Sub Menu Click On Text option can solve this problem. If there is a discrepancy, can we know what kind of menu it is?

    Thank You

    Hello @jegstudio,

    I’m having the same problem on the parent link in my JKit – Nav Menù. I agree with @bowbow7 and @pepbo that the option to click the parent link should be part of the plugin and not an additional code. Please provide it in the next update and warn us when it’s done. Many thanks.

    Plugin Author Fauzan Jegstudio

    (@fauzanjegstudio)

    Hello @xy693u,

    You can disable the Sub Menu Click On Text option (as shown in the previous comment) to achieve this.

    Thank You

    That’s awesome! Everything is fine now. Thank you @fauzanjegstudio

    Plugin Author Fauzan Jegstudio

    (@fauzanjegstudio)

    You’re welcome @xy693u,

    We’re glad to know. If you have other questions, feel free to create a new topic.

    Thank You ??

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Nav Menu not clicking on parent link’ is closed to new replies.