How can we help?

If you are looking for support for our PokaTheme, this is the place!

Home Forums PokaTheme support Short by “Date”

Viewing 10 posts - 1 through 10 (of 11 total)
  • Author
    Posts
  • #14240
    paynplaycasinos
    Participant

    Hi, the short by ‘Date’ function is not working for me. It lists the casinos from oldest->newest whatever I do from the theme files. No effect changing the ASC or DESC from the theme folder…

    #14248
    admin
    Keymaster

    Hi!

    Can you send us a demo page in order to see an example?
    I assume you mean the date function in the toplist shortcode?

    #14256
    paynplaycasinos
    Participant
    This reply has been marked as private.
    #14257
    admin
    Keymaster

    Hi!

    I checked your example but I don’t see anything wrong.
    When page loads the selected filter is “rating”.
    If I select “by date” then asc/desc works as expected.

    Can you give more details if I’m missing something?

    #14258
    paynplaycasinos
    Participant

    When you select “by date” it lists sites ASC (oldest->newest), but it should give DESC (newest->oldest). By default, it is DESC on the theme folder.

    #14264
    paynplaycasinos
    Participant

    “By default, it is DESC on the theme folder.” <- As I do as well, yet the table short it out by ASC.

    #14270
    admin
    Keymaster

    Hi!

    By default when you first select sort by date then it auto selects ASC.
    This is not a bug but this is how it works.
    I’m sorry but I don’t understand your comment “By default, it is DESC on the theme folder.”

    #14272
    paynplaycasinos
    Participant

    Well, how do I change the auto selects to DESC?

    #14273
    admin
    Keymaster

    I’m sorry but there is no setting for this in the theme.
    If you are familiar with JS you can find the following line in main.js

                } else if( $that.hasClass('btn-sort-date') ){
                    sortType = sortDate;
                    tableDefaultOrder = "asc";
                }
    

    and change it to:

                } else if( $that.hasClass('btn-sort-date') ){
                    sortType = sortDate;
                    tableDefaultOrder = "desc";
                }
    
    #14274
    paynplaycasinos
    Participant

    Did it, still no effect.

Viewing 10 posts - 1 through 10 (of 11 total)
  • You must be logged in to reply to this topic.