Targeting menu item in snippet

Home Forums Pro Support Targeting menu item in snippet

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #67960
    Anonymous

    Good day,
    I am working on some testing of my WordPress site, and I have a small problem that I cannot fix.
    I added responsive menu plugin into my local WordPress and I want to add some script on specific menu item by targeting with id through the JS in the snippet. But when I input my script in the snippet (no matter where – I tried and footer and header), the JS script won’t apply on any menu item.
    So the question is – how to add some snippets that will apply to the responsive menu items?
    With all regards, Danijela

    #67961
    Peter FeatherstonePeter Featherstone
    Participant

    Hey Danijela,

    Where to put custom javascript doesn’t sound like a question for my plugin but rather the theme you are using.

    Normally you would put your javascript inside the <head> section of the site or at the end, just before the closing </body> tag, however it is completely dependent upon you and your setup.

    What is your code snippet and how and where are you currently adding it?

    All the best

    Peter

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Targeting menu item in snippet’ is closed to new replies.