• Hi!

    I′ve been struggling with trying to set a jquery list file on a wordpress site. This is the script and html in a codepen: https://codepen.io/javve/pen/bBfgD

    My question is. The examples has html with scripts linked in. Can I copy the html to a custom page o do I need to set them in the header/footer, or enque them? Second question is regarding the jquery:

    var monkeyList = new List('test-list', {
        valueNames: ['name'],
        page: 5,
        plugins: [ ListPagination({}) ]
        });

    How do I adapt that to WordPress? Tried to set the in scripttags in the header, but no luck.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hey Jerry,

    Perhaps if you tell us what the context is (why) we might have more options in helping you .

    Thread Starter jerryskate

    (@jerryskate)

    Um.. I basically just want to make that script in the codepen work. Then i can adapt the html for my own needs ??

    I’m asking what the purpose is? You want to control/have this list in a WordPress site for what reason? If its just for the fun of it then ok … if you have an actual need / application then I’m sure there’s a plethora of other ways that suit the WordPress environment better.

    Thread Starter jerryskate

    (@jerryskate)

    Oh. Well i have to columns. Both are rss feeds, output in a ul container with li elements. I need to be able to sort bort columns after a keyword, thats why i want that plugin to do so.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to get the jQuery script working. Please help!’ is closed to new replies.