wpsl_thumb_size

  1. Description
  2. Usage
  3. Changelog
  4. Source File
  5. Related

Description

This filter allows you to change the thumbnail size in the store listing.

Usage

This example sets the width and height of the store thumbnail to 100 pixels:

You can check the maximum dimensions for the thumbnails on the Settings -> Media page.
If the changes you made don’t show up on the frontend, then make sure to flush the store locator transient cache. You can do this on the settings page.

If the image dimensions you’re using results in a big empty space between the address and the other details, then the CSS code below will probably fix this.

Copy the above code and place it in a CSS file loaded by your theme.

If nothing changes, then make sure to clear the browser cache and the cache from any active caching plugins.

Changelog

Since 2.0

Source File

This filter is located in /frontend/class-frontend.php.