Support » Plugin: WPAdverts - Classifieds Plugin » Hide arrows when only one image

  • Resolved bdd

    (@bws-online)


    When there’s only one image for an ad, it still shows the thumbnail and the arrows under it. Is there a way to hide that when there’s only one image?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    What arrows do you mean? On the Ad details the slider does not show any arrows if there is only one image uploaded?

    bdd

    (@bws-online)

    When only one image is uploaded, there are the arrows on left and right (when using Thumbnails Slider for Gallery Pagination) — .wpadverts-als-container .als-nav-fake — that’s what I was referring to. They show up with 2 images, too, but they do nothing.

    I wanted to know if there was a way (other than always hiding them via CSS) to remove them — and to do so in a way that wouldn’t impact them when they WERE needed/functioned.

    (Do those arrows ever function?)

    Plugin Author Greg Winiarski

    (@gwin)

    Ohh you mean the scenario when “Gallery Pagination” is set to “Thumbnails Slider”.

    If you do not want the arrows to show when scrolling is not possible then hide the fake navigation arrows with CSS.

    bdd

    (@bws-online)

    Thank you. I wondered how to do this conditionally in the future if I were to allow more than a few images (so that the arrows might be appropriate at times).

    But since at the moment I’m just allowing 2 images per ad, it’s a non-issue.

    (I didn’t realize they were fake arrows initially.)

    Plugin Author Greg Winiarski

    (@gwin)

    Ok, but note that if you hide only the .als-nav-fake then the arrows should show only when there is something to scroll, so it should be working the way you expect it to.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.