Home Forums WoodMart support forum Reversing image order in Instagram widget

Reversing image order in Instagram widget

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #395251

    wildguitars
    Participant

    Hi, we have the Instagram widget on our homepage and the order of the photos is reversed because our site is in Hebrew (RTL). We post three images at a time on our feed (screenshot attached) and the reversed order on our homepage is less than ideal (screenshot also attached). Is there a way to reverse the order back to LTR?

    Thanks,
    Tom

    Attachments:
    You must be logged in to view attached files.
    #395389

    Hello,

    Please insert the site admin access into the Private content below the message area. We will take a closer look at the case.

    Best Regars

    #395450

    wildguitars
    Participant

    Hi Elise, I have provided the requested info in the private content.

    Thanks,
    Tom

    #395451

    wildguitars
    Participant

    Sorry, I accidentally entered the staging site’s admin URL. Please see the correct details below.

    #395620

    Hello,

    Unfortunately, the site is not reachable.

    Please check and provide the valid URL.

    Best Regards

    #395733

    wildguitars
    Participant

    Sorry, I missed a letter in the URL. The information in the private content should work now.

    #395844

    Hello,

    Please add this code to the Theme Settings > Custom CSS > Global:

    body .owl-carousel.owl-rtl {
        direction: ltr!important;
    }

    Best Regards

    #395910

    wildguitars
    Participant

    Hi Elise,
    I added this code to the custom CSS and cleared the cache; I don’t see any change on the frontend.

    Best regards,
    Tom

    #395940

    Hello,

    Please update the theme and I will check once again.

    Best Regards

    #395974

    wildguitars
    Participant

    I updated the theme on our live website.
    Please note that the code you provided actually reversed the order of other galleries (such as the main gallery on product pages), but it had no effect on the Instagram widget. I would only like to reverse the order of the Instagram widget.

    Thanks,
    Tom

    #396176

    Hello,

    Please try this code:

    (function($) {
    	if ( 'undefined' !== typeof ($.fn.owlCarousel)) {
    		var $this = $('.instagram-slider');
    		var $owl = $this.find('.owl-carousel');
    
    if (!$owl.length) {
    				return;
    			}
    		
    		if ($owl.hasClass('owl-loaded')) {
    				$owl.trigger('destroy.owl.carousel');
    		}
    		
    		$owl.owlCarousel({
    			rtl: false,
    			items: $this.data('desktop') ? $this.data('desktop') : 1,
    				responsive: {
    					1025: {
    						items: $this.data('desktop') ? $this.data('desktop') : 1
    					},
    					769 : {
    						items: $this.data('tablet_landscape') ? $this.data('tablet_landscape') : 1
    					},
    					577 : {
    						items: $this.data('tablet') ? $this.data('tablet') : 1
    					},
    					0   : {
    						items: $this.data('mobile') ? $this.data('mobile') : 1
    					}
    				},
    				autoplay          : $this.data('autoplay') === 'yes',
    				autoplayHoverPause: $this.data('autoplay') === 'yes',
    				autoplayTimeout   : $this.data('speed') ? $this.data('speed') : 5000,
    				dots              : $this.data('hide_pagination_control') !== 'yes',
    				nav               : $this.data('hide_prev_next_buttons') !== 'yes',
    				autoHeight        : $this.data('autoheight') === 'yes',
    				slideBy           : typeof $this.data('scroll_per_page') !== 'undefined' ? 1 : 'page',
    				navText           : false,
    				navClass          : ['owl-prev wd-btn-arrow', 'owl-next wd-btn-arrow'],
    				center            : $this.data('center_mode') === 'yes',
    				loop              : $this.data('wrap') === 'yes',
    				dragEndSpeed      : $this.data('dragendspeed') ? $this.data('dragendspeed') : 200
    		});
    		
    	}
    })(jQuery);

    Please add the code to the Theme Settings > Custom JS > On document ready.

    Best Regards

    #396723

    wildguitars
    Participant

    This seems to have done the trick, thanks so much Elise! Your support is fantastic.

    Best regards,
    Tom

    #396874

    We are always happy to help you, write to us when you have any difficulties or issues with our theme.

    We would be grateful for your rate and feedback on http://themeforest.net/downloads in case you are satisfied with our theme and customer service

    Thank you in advance!

    Wish you a wonderful day!

Viewing 13 posts - 1 through 13 (of 13 total)

The topic ‘Reversing image order in Instagram widget’ is closed to new replies.