• Resolved ark74

    (@ark74)


    Hello!
    I’m wondering how can I increase the size of the markers the right way.

    For some reason it I’m not able to accomplish that with CSS.
    Any suggestions?

    I’m using latest WP, WPSL along with Divi Theme, if that matters at all.

    Thanks in advance

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Tijmen Smit

    (@tijmensmit)

    Try to add this to the functions.php inside your active theme folder.

    add_filter( 'wpsl_thumb_size', 'custom_thumb_size' );
    
    function custom_thumb_size() {
        
        $size = array( 100, 100 );
        
        return $size;
    }

    Then replace the 100, 100 with whatever value you want.

    Thread Starter ark74

    (@ark74)

    Hello,

    Thank you very much for the answer.

    I’ve tried that on both child’s theme and main theme functions.php file, but markers are still showing up at 24×35.

    Is there any specific setting it should be set on the plugins settings?

    Thanks.

    Plugin Author Tijmen Smit

    (@tijmensmit)

    What’s the URL? If you go to Settings -> Media in the admin area, what does it show for Thumbnails?

    Can you also check if it works in private mode?

    Thread Starter ark74

    (@ark74)

    Hi,

    The URL is https://gelatys.com/#locations

    With markers I mean the img arrow (blue ones) not thumbnail images for stores.

    So far the markers/arrows/pointers, they show at 24 x 35px.

    CSS shows,
    div#wpsl-gmap.wpsl-gmap-canvas div div.gm-style div div div div div img

    in style,
    style="position: absolute; left: 0px; top: 0px; width: 24px; height: 35px; user-select: none; border: 0px none; padding: 0px; margin: 0px; max-width: none;"

    Thread Starter ark74

    (@ark74)

    Hi again,

    I’m wondering if this is this possible.
    Regards

    Plugin Author Tijmen Smit

    (@tijmensmit)

    If you add this code to the functions.php inside your active theme folder, and change the used values, then it should show larger. But scaling the original makers may make them look unsharp, so you could in that case use custom markers that you could use bigger anyway.

    Thread Starter ark74

    (@ark74)

    Hello again,

    Thanks it does work.
    At first I thought about the custom markers path, but I thought maybe there was some other path.

    Thank you very much for taking the time to clear this question.
    Best regards.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Change markers size’ is closed to new replies.