Add .launch-contact-modal class to your WordPress menu item. This can be done from the admin interface Appearance > Menu.
Change #contactModal in the following jQuery to the ID of your Bootstrap 4 modal.
jQuery(document).ready(function($){
// Adding Bootstrap Modal to WordPress Menu
$('.launch-contact-modal').find('a').attr('data-toggle', 'modal');
$('.launch-contact-modal').find('a').attr('data-target', '#contactModal');
});
Nice Post Sir It helps a lot to learn more.
Thanks for the feedback Ritesh, glad it helped 🙂
Worked Perfect Thanks!
This helped me so much, super straightforward! Thank you!!
Thank you so much! God bless you!