Support » Plugin: WP Store Locator » Custom marker image size

  • Hi there,

    I added custom makers per category, but somehow they not seem to be displayed correctly:

    As you can see, the image size is completely wrong.

    How can I fix this?

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

    (@tijmensmit)

    Hi,

    You can fix this with this filter.

    Copy the code from the usage section, place it in the functions.php inside your active theme folder. Then change the $marker_props[‘scaledSize’] dimensions to 50% of the size of the current image.

    Thread Starter Zoker

    (@zoker)

    But the images have different sizes…

    Plugin Author Tijmen Smit

    (@tijmensmit)

    That won’t work, the maker images do need have the same dimensions.

    How many different images do you have? You can maybe change the canvas size of each marker to make them the same dimensions? So some will have more transparent space around them then others, but if the center of the image itself is always in the middle, then it should look fine.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom marker image size’ is closed to new replies.