I’m trying to create my own navigation for LayerSlider using the API.
This is because I want icons and text which can be updated easily through the backend.

The layerslider documentation recommends the following line of code which I am using:

<a href="javascript:void(0);" onclick="$('#layerslider').layerSlider(2);">Text & Icon</a>

According to this link, it should skip to the second slide when clicked. However, it does nothing.

I haven’t added any jQuery to my template at this stage. This may be the issue? My knowledge on jQuery compared to html and php is minimal so I am struggling with this.

I’ve also found this link, but this uses a list, whereas I’m using an anchor tag with some divs, text and images inside it.

If you need more information to help me troubleshoot this issue, please let me know. I can provide links if need be.

Read more here: Custom Layerslider Navigation using API (on WordPress)


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Related Wordpress search:

, , , ,

Wordpress related questions and answers: