• Resolved albanotoska

    (@albanotoska)


    When clicking load more button it gives this error :

    app.js?ver=1.0.0:161 Uncaught TypeError: Cannot read property 'attributes' of undefined
        at n.fn.init.getDataAttributes (app.js?ver=1.0.0:161)
        at n.fn.init.initialize (app.js?ver=1.0.0:34)
        at n.fn.init.$.fn.InfinizyLoadMore (app.js?ver=1.0.0:176)
        at HTMLDivElement.<anonymous> (app.js?ver=1.0.0:184)
        at Function.each (jquery.js?ver=1.12.4-wp:2)
        at n.fn.init.each (jquery.js?ver=1.12.4-wp:2)
        at app.js?ver=1.0.0:181
        at app.js?ver=1.0.0:191
    • This topic was modified 4 years, 4 months ago by albanotoska.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter albanotoska

    (@albanotoska)

    I fixed it myself but please in next version consider this error.
    What I did was I went to plugin files/assets/js/app.js and on line 24
    var $wrapper = $this.find('.I put here my wrapper class');
    So I put my own wrapper class there.

    Plugin Author tushargohel

    (@tushargohel)

    Hi @albanotoska,

    Thank you for your great suggestion and actually this the bug that you face the problem

    We have no plan to remove the main wrapper but the user can another class via shortcode and the main wrapper(cpt-alm-wrapper) must be there.

    So in the next version, you can add another class and the main wrapper will not overwrite.

    Thanks,
    Tushar

    Thread Starter albanotoska

    (@albanotoska)

    Yes that’s great! You can keep it but also give the options to have another class on the main wrapper. Thank you for your great plugin!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Load more button gives error’ is closed to new replies.