Skip to content

Fix widgets default preview image in single listing sidebar#2845

Open
Arafat-plugins wants to merge 1 commit intosovware:developmentfrom
Arafat-plugins:widget-default-preview-image-fix
Open

Fix widgets default preview image in single listing sidebar#2845
Arafat-plugins wants to merge 1 commit intosovware:developmentfrom
Arafat-plugins:widget-default-preview-image-fix

Conversation

@Arafat-plugins
Copy link
Copy Markdown
Contributor

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Security fix
  • Improvement
  • New Feature
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Text changes
  • Other... Please describe:

Description

How to reproduce the issue or how to test the changes

  1. In Directorist, set a directory-specific Default listing preview image in the directory builder General settings.
  2. Create a featured/popular/similar listing without uploading a preview image or gallery image.
  3. Open the single listing page and check the sidebar widgets.
  4. Before this change, the widgets used Directorist's placeholder grid.jpg instead of the user-configured default listing preview image.
  5. After this change, the widgets now use the directory-specific default preview image first, and only fall back to the placeholder if no default image is configured.

Any linked issues

Fixes # https://taiga-sovware-u10698.vm.elestio.app/project/directorist/issue/2891

Screenshot

Checklist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant