Changing sort-by field from option element to something else

Forums › Forums › Search & Filter Pro › Changing sort-by field from option element to something else

Tagged: 

Viewing 7 posts – 1 through 7 (of 7 total)
  • Anonymous
    #34967

    Hello,

    I searched the forum on this topic and couldn’t find anything. Hopefully I’m not duplicating questions!

    Is it possible to change the Sort By option selector to something else? For example, our designer would like the sorting functionality to look something like this — Sort: Most Recent | A-Z , where either “Most Recent” or “A-Z” can be clicked to change the sort order and the current sort order is indicated by the label being bold.

    Thank you!

    Ross Moderator
    #34969

    Hey Travis

    The only quick thing I could implement is radio buttons, there is some code in there lurking around I started a while ago – is this something that would help?

    The html markup would be nearly the same as the markup generated by the radio option in any of your other fields.

    Thanks

    Anonymous
    #35072

    Hi, and when you will be able to add sorting on Ratio???

    Anonymous
    #35638

    Hi Ross,

    Thanks for the suggestion and sorry for the delayed response. Radio buttons could work. Do they have labels? If so, perhaps I could hide the radio button input and just use the label as the selector.

    Thank you,

    Travis

    Ross Moderator
    #35752

    Hi both

    I’ve just released 2.1.2 which has this option included ๐Ÿ™‚

    Yeah there are labels after, so you can use some CSS wizardry to hide the radio inputs themselves!

    Thanks

    Anonymous
    #36254

    Hi Ross,

    That did the trick! Thank you for implementing it so quickly. ๐Ÿ™‚

    Travis

    Ross Moderator
    #36284

    ๐Ÿ™‚

Viewing 7 posts – 1 through 7 (of 7 total)

Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.