Add some code, how do I do this?

Home Forums All Other Themes Add some code, how do I do this?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #169788
    Michiel HesselingMichiel Hesseling
    Participant
    • Topics: 34
    • Replies: 61
    • Total: 95
    Member since: August 28, 2020

    Hi there,

    I want to add some code to my website.

    I found on the internet that if I add this code: $(‘.site-nav’).slideUp() ;
    to my website the menu on the mobile website will close automatically.

    This is the complete line of code on that particular website: $(‘.main-nav > li ‘).click(function(){
    $(‘.site-nav’).slideUp()
    });

    I assume on my website, www.pceerstehulp.com there would be a similar code line where I can add a line of code to close the menu automatically. Where can I find this code and how can I edit it?

    TIA

    Michiel

    #169795
    Sonl SinhaSonl Sinha
    Moderator
    • Topics: 0
    • Replies: 30975
    • Total: 30975
    Member since: August 16, 2013

    Hi,

    Kindly go to assets >> complete.js >> line No 200 and add your code there.

    Regards,
    Brad

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.