How can I click the parent menu then redirect to a special URL?

You see I have a Navigation bar items, in the parent item Products Services with two sub menus.

I have a requirement, when I click the menu item Products Services it redirect to its sub-menu Dedicated Servers.

How can I do with this?


EDIT-01

I only want the Products Services parent have this redirect, the other parent do not need, such as Home, Advantage they all have their own page.

Topic sub-menu navigation menus Wordpress

Category Web


My solution is let the window location redirect redirect to your special URL:

<script>
    jQuery(document).ready(function(){
        window.location.href="http://path/to/dedicated-servers/";
    })
</script>

Source

In the wp-admin under menus you just have to replace the ‘#’ with the url for the parent item.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.