Skip Navigation

[Resolved] Sizing the picture in the map marker popup

This support ticket is created 2 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 6 replies, has 2 voices.

Last updated by heinP 2 years, 3 months ago.

Assisted by: Waqar.

Author
Posts
#2255819

Tell us what you are trying to do?
Sizing the picture in the map marker popup, to the thumbnail or 50x50 px

Whatever option I choose, the picture is never resized and stays in original format (which is way to big)
Is there any documentation that you are following?
no
Is there a similar example that we can see?
i can give you access to the site as for previous tickets
What is the link to your site?

#2256011

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting us and I'd be happy to assist.

I've set your next reply as private, so that you can share the temporary admin login details, along with the link to an example page where this map marker pop-up can be seen.

Note: It is recommended to make a complete backup copy, before sharing the access details.

regards,
Waqar

#2257435

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for sharing the admin access.

In the map marker's pop-up content, I noticed this shortcode is used for the image field:


[types field='picture' size='medium' resize='proportional' separator=', '][/types]

As the "medium" image thumbnail size is set to a maximum of 300px x 300px, the images in the pop-up will also use the image thumbnails in the same size.

For smaller images, you can change size from "medium" to "thumbnail" (150px x 150px):


[types field='picture' size='thumbnail' resize='proportional' separator=', '][/types]

Note: for limiting image size to an even smaller value, you can include some custom CSS code in the view, for example:


.gm-style-iw-d img {
max-width: 50px !important;
}

#2257453

Hi,

I was aware of this shortcode, and I have changed it to every possible variation.

Even with the custom CSS you proposed, the result is just as before: the picture does not adapt it's size.

Something else must be going on. You can see what I mean on the custom post as described in privat.

Thanks

#2258319

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

I've checked the page and the custom CSS code seems to be working now, to reduce the image size to the width of 50px.
( screenshot: hidden link )

Can you please clear all involved caches and check the page again?

#2258333

Great! It works. I was basically looking in the wrong place. I was not looking on the preview, but on the 'edit page' page. In there the picture does not resize, but on the preview it does.

Small additional question:
Can I force the system to only show one/the first picture ?

#2258335

My issue is resolved now. Thank you!
i found that 'index=0' forces the system to only show the first picture.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.