Single menu item trigger
-
Hello,
Is it possible to make a single menu item a trigger? I can’t seem to get it to work.
I made a custom Menu item with the CSS class “custom_button” however if I try to add “.custom_button” or “.custom_button a” or “.custom_button > a” to the list of triggers it doesn’t seem to work. The CSS class is correct because I can style it in my stylesheet, I just can’t seem to make it a trigger.
Is this intended or am I doing something wrong? The plugin says any selector is accepted.
-
Hey there,
Unfortunately you don’t seem to have provided a link to your site for me to check so it’s impossible to say but yes any trigger selector will work.
Please advise
Peter
Hello,
Thank you for your reply.
I cannot provide a link because the site is currently localhost. I was hoping my question was clear enough.
But I cannot seem to turn “.custom_button > a” into a trigger. The > a selector seems to prioritise the actual link over the trigger. Even if I enter ‘#’ as a link or even leave it empty.
-
This reply was modified 7 years, 5 months ago by
workman123.
-
This reply was modified 7 years, 5 months ago by
workman123.
Hey there,
Unfortunately it’s going to be almost impossible to know what’s going on without something to look at as it could be affected by anything on your site.
The question is clear but solving it is too dependant on a site by site basis.
What do you have as the exact data in your Trigger option?
Peter
Hi Peter,
I understand it’s hard to do without something to look at but I appreciate your time.
I have just remade the new menu item without a css class and copied the selector through devtools.
My exact data in the trigger option look as below. Where #menu-item-2157 > a, is the new trigger that I cannot get to work.
/*#responsive-menu-pro-button,*/ .info2, .button_return2, #menu-item-2157 > a
-
This reply was modified 7 years, 5 months ago by
workman123.
Hey there,
Have you tried it without the CSS comments? It could be that they are messing up the final output.
Please advise
Peter
Hi Peter,
Yes I have tried it without the comments and I’m afraid it didn’t help.
Hey there,
I’m not really sure what to suggest without being able to look at it.
Do you have a dev or staging site up I can look at?
Have you tried it with a simpler CSS selector on your page to check that works? Have you tried inspecting elements for any tagged javascript events on that element etc?
Please advise
Peter
-
This reply was modified 7 years, 5 months ago by
The topic ‘Single menu item trigger’ is closed to new replies.