Your address will show here +12 34 56 78

Home Forums WP ESTATE – Real Estate WordPress Theme FORUM Limit # of properties in compare to 3

This topic contains 1 reply, has 1 voice, and was last updated by  crerem 3 years, 6 months ago.

  • Author
    Posts
  • #32386

    Rob B

    Hey Anna, all is working really well with our theme. Thanks again for your terrific support.

    I’m just wondering if it’s possible to set up a maximum number of properties that can be compared at a time. I’d like to limit it to 3, but I can’t find a Theme Option (or where in the code) I’m able to adjust this.

  • #32736

    crerem

    At this moment the limit is 4 and is hardcoded.

    If you want to change this to 3 go to control.js and around line 1925 change

    if (parseInt($(‘.items_compare’).length,10) > 3)

    into

    if (parseInt($(‘.items_compare’).length,10) > 2)

    Should do the trick.
    Good luck

You must be logged in to reply to this topic.