Hi,
I’m setting up a Layout page where I’d like to use a slider. The layout is for concerts, and the slider will display the artists associated with that concert. The artists are connected to the concert through an ACF Relationship field called “konsert-artist”, and I have successfully been able to loop the artists to create the slider. I have based the design on the template “Post Carousel Slider”. My problem is that whenever I have less than 3 slides, each slide gets very big (both wider and taller). Is there a way to set it up so that the slide size is consistent no matter how many slides there are? Whenever I have tried setting “max-height” on the slide or slider, the parent element adjusts, but not the slide itself.
I was also wondering if there is a way to hide the Slide Navigation based on how many slides I have. The easy solution would be to set a conditional based on the number of slides, but I am struggling to find a way to output the number of slides (ie number of objects found in {{dc:acf:post_field field=“konsert-artist”}}. Is there a way for me to get that number? Problem being that I can’t count the number of looped items since the Slide Navigation sits are outside of the looper consumer.
Hope that was cohesive. Thanks for any help!
Best regards,
Andreas Rokseth