Home › Forums › Jevelin Theme › Load Modal on Click of Menu
Home › Forums › Jevelin Theme › Load Modal on Click of Menu
Hey,
I have created a modal that i want to load on the click of menu. i can give id into the url of the menu. but where do i give data-toggle=”modal” and make the thing work.
Please help me out. Thanks!
Hi @juzerdhoon,
I hope you are well today and thank you for your question.
You can achieve this by developing custom code as described on the below pages.
https://sridharkatakam.com/add-custom-attribute-nav-menu-item-wordpress/
Best regards,
Shufflehound team
After adding the code, based on the first link. Got this error, could you please tell what it is.
Uncaught Error: Syntax error, unrecognized expression: div#
at Function.ea.error (jquery.js?ver=1.12.4-wp:2)
at ea.tokenize (jquery.js?ver=1.12.4-wp:2)
at ea.select (jquery.js?ver=1.12.4-wp:2)
at Function.ea (jquery.js?ver=1.12.4-wp:2)
at Function.a.find (jquery-migrate.min.js?ver=1.4.1:2)
at n.fn.init.find (jquery.js?ver=1.12.4-wp:2)
at n.fn.init.a.fn.find (jquery-migrate.min.js?ver=1.4.1:2)
at a.fn.init.n.fn.init (jquery.js?ver=1.12.4-wp:2)
at new a.fn.init (jquery-migrate.min.js?ver=1.4.1:2)
at n (jquery.js?ver=1.12.4-wp:2)
Thanks
Solution for this topic
this is resolved
Awesome great to see you got that resolved.
Please advise if you have more questions.
Have a fantastic day!