All Collections
FAQ's and Troubleshooting
How To Make The Mega-Menu titles clickable in Extra
How To Make The Mega-Menu titles clickable in Extra

How to make the title of posts clickable in the Extra theme mega menu

Cristi avatar
Written by Cristi
Updated over a week ago

When you set up a mega menu for your Extra theme, you will notice that only the images are clickable inside the menu, the titles on the other hand are just plain text. 

If you want to make the titles clickable, add this code in Dashboard > Extra > Theme Options > Integration > Add code to the < body > (good for tracking codes such as google analytics):

<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>


Now, the titles inside the mega-menu should be clickable.

Did this answer your question?