Skip Navigation

[Resolved] How can I replace image boxes with a slider

This support ticket is created 7 years, 2 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by barisS 7 years, 2 months ago.

Assisted by: Luo Yang.

Author
Posts
#569315

hi, I currently use realtor starter theme. I the have a problem with single-property page. When I add detailed images for the house I want a slider not image boxes. Please check out a property listing on zillow.com you will understand what I mean.
this is the codes for image boxes:

[wpv-conditional if="( $(wpcf-property-gallery) ne '' )"]
<div class="text-center property-gallery">
[types field='property-gallery' width='300' height='200' align='none' resize='crop' separator=' '][/types]
</div>
[/wpv-conditional]

I created a "view" instead of codes above.

[wpv-post-link]
<div class="property-slider" style="background-image: url([types field='property-gallery' size='full' url='true'][/types])"></div>

Questions:
1-Problem is code above pulls all gallery images from every listing. I want to pull gallery-images related to the one single post but I don't know how can I specify it as 'current listing'

2-How can I resize gallery pictures so they will be bigger?

#569432

Dear Baris,

Q1) I want to pull gallery-images related to the one single post but I don't know how can I specify it as 'current listing'
You can add a filter into the view to specific the post is current post, see our document:
https://toolset.com/documentation/user-guides/filtering-views-query-by-post-id/
section "Value set by View shortcode attribute", for example:
[wpv-view name="Filter by post id" ids="[wpv-post-id]"]

2) How can I resize gallery pictures so they will be bigger?
you can setup some CSS code to resize the background images with attribute "background-size":
hidden link

#570648

THANKS