[Resolved] Carousel doesn’t work on RTL layouts

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Carousel doesn’t work on RTL layouts

Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #27079
    Anas
    Participant

    Hi,

    I created a Carousel to be positioned as the first element on my home page (I use GeneratePress theme), but all I could see is a blank carousel with just dots and arrows visible. After spending a couple of hours trying to get it to work I switched my WordPress language from Arabic to English just to see if this was related to RTL layouts, and here you go, the carousel appeared correctly, but obviously this is not a solution for me. I guess there’s a bug with the carousel when it comes to RTL layouts (which other WPSP lists support perfectly). Could you please help investigate this? Here’s my staging website https://almania-plus-2cbcc2.ingress-daribow.easywp.com/ and you can see the ‘blank’ carousel as the first element on the page.

    Thanks.

    #27117
    elvin
    Moderator

    Hi there,

    Try adding this PHP snippet:

    add_filter( 'wpsp_carousel_args', function( $args ) {
        $args['rtl'] = false;
        return $args;
    },15,1 );
    #27137
    Anas
    Participant

    Hi Elvin,

    I added the filter but I still have the same issue, unfortunately.

    #27181
    elvin
    Moderator

    How about this?

    add_filter( 'wpsp_carousel_args', function( $args ) {
        $args['rtl'] = true;
        return $args;
    },15,1 );

    Let us know.

    #27251
    Anas
    Participant

    It works! Thanks.

    #27259
    elvin
    Moderator

    Nice one. No problem. 😀

    #28573
    Bizhan
    Participant

    Hi
    I tried this code on Woodmart RTL theme and not working. I add the code to functions.php in theme folder.

    add_filter( ‘wpsp_carousel_args’, function( $args ) {
    $args[‘rtl’] = true;
    return $args;
    },15,1 );

    #28642
    elvin
    Moderator

    Hi Bizhan,

    That’s strange. It works on the topic starter so there must be some issue on how the PHP snippet was added or plugin conflict on your site.

    Can you let us have a look at the backend to check?

    You can send us the details through the contact page: https://wpshowposts.com/contact/

    Let us know.

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