Home › Forums › WoodMart support forum › In the Images gallery carrousel, how to keep the "arrows" always visible
In the Images gallery carrousel, how to keep the "arrows" always visible
- This topic has 10 replies, 3 voices, and was last updated 3 years, 2 months ago by Jeriss Cloud Center.
-
AuthorPosts
-
October 3, 2021 at 11:44 am #322765
Jeriss Cloud CenterParticipantDear,
I’m trying to keep the arrows always visible. Why? Because if you check the mobile view, it’s unclear to users that they can scroll, simply because there is no “hover” on mobile so the arrows actually never get displayed. That’s why I believe arrows should always be visible on mobile.
Can you help to know how to keep the arrows always visible?
ThanksAttachments:
You must be logged in to view attached files.October 3, 2021 at 6:22 pm #322792
Elise NoromitMemberHello,
Do you want the buttons to appear on whoever add this code:
body .wd-slider-wrapper .flickity-button { opacity:0; } body .wd-slider-wrapper:hover .flickity-button { opacity:1; transition:3s; }
If you have any questions please feel free to contact us.
Best Regards
October 3, 2021 at 6:28 pm #322793
Jeriss Cloud CenterParticipantDear,
I’ve added the code you provided but it doesn’t work.
Can you please recheck?Thanks
October 3, 2021 at 8:31 pm #322821
Elise NoromitMemberHello,
Please provide the site admin access: https://gyazo.com/2eed8086f67f88c7d83b3a4d30d27117
Clarify how it should be, perhaps I misunderstood the purpose.
Best Regards
October 4, 2021 at 9:48 am #322916
Jeriss Cloud CenterParticipantPlease read back carefully my initial ticket.
In the title I talk about the “Images gallery carrousel” (I’m not talking about the woodmart sliders). And in the attachment, I show exactly where the problem is. Please check the attachment.
Credentials below
October 4, 2021 at 10:12 pm #323043
Elise NoromitMemberHello,
Please add this code to the Theme Settings > Custom CSS > Global:
body .owl-carousel .owl-nav>div { visibility: visible; opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); pointer-events: visible; }
Mobile devices have a variety of widths and if I show them on one device, it does not mean it would appear on another as well. That is why they are hidden and autorotation has been enabled to show that this is the image gallery.
Best Regards
October 5, 2021 at 12:25 pm #323170
Jeriss Cloud CenterParticipantDear,
I tried the code, it works on right-arrow but left-arrow doesn’t appear always visible.
Is this normal?
ThanksAttachments:
You must be logged in to view attached files.October 5, 2021 at 9:24 pm #323246
Elise NoromitMemberHello,
Please try this code:
@media (max-width: 1024px){ body .wd-carousel-spacing-2 .owl-nav>div[class*="next"] { right: -20px; } body .wd-carousel-spacing-2 .owl-nav>div[class*="next"]:after { right: -20px; background:rgba(255,255,255,0.8); } body .wd-carousel-spacing-2 .owl-nav>div[class*="prev"] { left: -20px; } body .wd-carousel-spacing-2 .owl-nav>div[class*="prev"]:after { left: -20px; background:rgba(255,255,255,0.8); } }
Best Regards
October 8, 2021 at 11:10 am #323947
Jeriss Cloud CenterParticipantUnfortunately this second code is not working neither for the purpose of my request.
October 11, 2021 at 7:15 am #324254
Bogdan DonovanKeymasterHello,
Sorry for misunderstanding. By default, in our theme, carousel arrows are always visible on mobile devices (https://gyazo.com/1948db92a4b3fef719d41dedff0c3422). How it works, you can see on the following page: https://woodmart.xtemos.com/images-gallery/.
In your case arrows are not visible due to the next coincidence of configuration:
1. You have placed image carousel in the WPB tabs element that by default contains “overflow: hidden” property which is cuts off (https://prnt.sc/1voc4uf) all visible content that is goes out from tab container.
2. You have disabled carousel on mobile devices in performance options (https://prnt.sc/1vocbhn). In that case carousel with arrows and dots pagination will be replaced with simple horizontal scroll bar. If carousel are disabled, scrollable content are indicated by semitransparent gradient which you decided to remove in one of the previous topics (https://xtemos.com/forums/topic/images-carrousel-very-bad-style-on-mobile/).To fix your issue, you need:
1. Move your image gallery outside from tabs element, or add following custom CSS code to General Custom CSS area to remove “overflow: hidden” from WPB tabs element container:.wpb-js-composer .vc_tta.vc_general.vc_tta-style-classic.vc_tta-tabs .vc_tta-panel, .wpb-js-composer .vc_tta.vc_general.vc_tta-style-classic.vc_tta-tabs .vc_tta-panel.vc_active .vc_tta-panel-body { overflow: visible !important; }
2. Enable carousels on mobile devices by turning off “Disable OWL Carousel script on mobile devices” option in theme settings (https://prnt.sc/1voeff5).
Kind Regards
October 12, 2021 at 1:02 pm #324623
Jeriss Cloud CenterParticipantWonderful thanks Bogdan!
I re-enabled OWL and added your css code, and now it works great
You can close this ticket thanks
-
AuthorPosts
The topic ‘In the Images gallery carrousel, how to keep the "arrows" always visible’ is closed to new replies.
- You must be logged in to create new topics. Login / Register