Search and listings page map zoom

This topic contains 8 replies, has 4 voices, and was last updated by  Atilla Boz 7 years, 10 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #348717

    mrv
    Expired Member
    Post count: 54

    Does the map on the search and listings page (supreme theme) have a mouse scroll zoom option? I see it has the zoom in and out buttons but would like to use mouse scroll wheel. Thanks!

    #348897

    Kor
    Moderator
    Post count: 16516

    Hi Mrv,

    You can’t change that map to “Allow Mouse Scroll” as this is a default feature of the child theme. But I’ll go ahead check with a developer and see if there’s an easy way to achieve this.

    Thanks!

    #349023

    Giri
    Expired Member
    Post count: 3155

    Hi mrv,

    I have recently added a hook to modify the map options.

    Changes will be available in next version.

    Please post your ftp details, if you want me to apply the changes in your website.

    Thanks

    #353637

    Atilla Boz
    Full Member
    Post count: 280

    Hi Giri,

    I am very interested in that hook, too. Could you please post or send me the code so I can add and upload it? Would be great!

    Thank you in advance,
    Atilla

    #353828

    Giri
    Expired Member
    Post count: 3155

    Atilla,

    Apply this patch in supreme.

    https://github.com/mistergiri/supreme-directory/commit/a64ac84c0eb7628c043ffca44e66c4862aed9f3f?diff=split

    and then add this code in code snippets.

    
    
    add_filter('sd_map_shortcode_args', 'modify_sd_map_shortcode_args');
    function modify_sd_map_shortcode_args($args) {
          $args['scrollwheel'] = 'true';
          return $args;
    }

    Let me know how that goes.

    Thanks

    #356169

    Atilla Boz
    Full Member
    Post count: 280

    Hello Giri!

    I can say – it works! Thank you very much!!

    I just had 2 things that slowed me down, so if any other WPGD beginners read this check this out:

    1. Dont copy the + signs at he beginning of the code lines 131 – 145
    At first I wasn`t sure if those + are needed or just from that editor 😉

    2. If you ask yourself where to add those 5 lines from the new filter, do not search around in the wordpress area for something like – code snippets – and also do not try to add it at GD > Design > Scripts cause that`s not the place to add it. Better open the functions.php file of your theme and add the code at the end of the file.

    Good luck everyone and thank you again Giri! Is this going to be added in the next version?

    Kind regards,
    Atilla

    #356258

    Giri
    Expired Member
    Post count: 3155

    Yes Atilla,

    It will be available in next version.

    Thanks for giving tip for our users 🙂

    #356342

    mrv
    Expired Member
    Post count: 54

    Worked perfect, thanks!

    #356350

    Atilla Boz
    Full Member
    Post count: 280

    Ok that`s great news!
    Have a great time 🙂

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount