Load Modal on Click of Menu

Home Forums Jevelin Theme Load Modal on Click of Menu

Home Forums Jevelin Theme Load Modal on Click of Menu

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    RESOLVED Posts
  • juzerdhoon
    Participant

    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!

    • This topic was modified 2 years, 10 months ago by juzerdhoon.

    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/

    https://wordpress.stackexchange.com/questions/121123/how-to-add-a-data-attribute-to-a-wordpress-menu-item

     

    Best regards,
    Shufflehound team

    juzerdhoon
    Participant

    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

    • This reply was modified 2 years, 10 months ago by juzerdhoon.

    juzerdhoon
    Participant

    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!

Viewing 5 posts - 1 through 5 (of 5 total)