Skip to main content
All CollectionsTroubleshooting and FAQsFrequently Asked QuestionsGeneral
How to Make the Mega-Menu Titles Clickable in Extra
How to Make the Mega-Menu Titles Clickable in Extra

Learn how to make mega-menu titles clickable in the Extra theme to enhance navigation and improve user experience on your site.

Updated over 3 months ago

Mega-menus are an excellent way to organize and display large amounts of content in a structured manner. In the Extra theme, making the mega-menu titles clickable can enhance navigation and improve user experience by allowing visitors to access main category pages directly.

Extra - Mega Menu example

This article will guide you through the steps to make mega-menu titles clickable in the Extra theme, providing your users with a more intuitive and seamless browsing experience.

  1. Log in to your WordPress website

  2. Go to WordPress Dashboard β†’ Extra β†’ Theme Option β†’ Integration tab β†’ Header

  3. Copy and Paste the following JS code:

    <script>
    (function ($) {
    $(document).ready(function () {
    $('#main-header .featured-post').each(function () {
    var url = $(this).find('a:first').attr('href');
    $(this).find('h2').wrap('<a href="' + url + '"></a>');
    });
    });
    })(jQuery);
    </script>

After adding the above code, the titles inside the mega-menu will be clickable.

Did this answer your question?