Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • esnyc13 Friend
    #187465

    Hi there,

    I set up a K2 Archive Module to the right and if I select to hide the item count then the link is not working.
    If I select to show the item count then the module works normally.

    Any ideas?

    Thank you in advance for your reply.

    Saguaros Moderator
    #492691

    Hi esnyc13,

    Its a bug of JA Lens template, we fixed it and it will be update and released in the next version of this template.

    Currently, you can apply this solution:

    – Take a backup for your site first.

    – Open file: templatesja_lenshtmlmod_k2_toolscategories.php

    At approx line 27:

    [PHP]
    jcounter.each(function(){
    var num = this.innerHTML.match(/(d+)/)[0];
    if(!isNaN(num) && num <= 0){
    $(this).closest(‘li’).addClass(‘inactive’);
    }
    });
    [/PHP]

    change it to:

    [PHP]
    jcounter.each(function(){
    if(jcounter.html().length > 0 ){
    var num = this.innerHTML.match(/(d+)/)[0];
    if(!isNaN(num) && num <= 0){
    $(this).closest(‘li’).addClass(‘inactive’);
    }
    }
    });
    [/PHP]

    and let me know how it goes

    Regards

    esnyc13 Friend
    #492705

    Thanks for your reply,however it did not work.

    Regards

    Saguaros Moderator
    #492717

    You can pm me admin and ftp account of your site so that I will have a closer look at this issue.

    Regards

Viewing 4 posts - 1 through 4 (of 4 total)

This topic contains 4 replies, has 2 voices, and was last updated by  Saguaros 11 years, 4 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum