• Hello

    Thanks for making such a great plugin! It is *** awesome!

    I’ve checked the documentation but I haven’t seen anything about it. I was wondering if it’s possible to remove the links in the posts carousel block. My idea is just to show a slider of featured images, which cannot be clicked. And I don’t want to use javascript for that purpose.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Team Brainstorm Force

    (@brainstormteam)

    Hello @desberdin,

    Unfortunately, as of now, we have not provided an option or any such filter to remove the Links of the Post Carousel Block. But I would love to take this as a suggestion. I have added your feature request to our to-do list.

    We really appreciate your efforts and patience.

    But you can add just a one-line Javascript which will do the trick.

    To do that, you can follow the following steps:

    1] Add a class to the Post Carousel Block for which you need to remove the links from Advanced settings. Refer to this screenshot.

    2] Add the following code in your child theme’s functions.php file.

    add_action('wp_footer', function(){
          echo 'jQuery(".uag-post-carousel-test .uagb-post__image a").attr( "href",  "javascript:void(0);" ); ';
    });
    

    Note : Replace the .uag-post-carousel-test with the class name you have entered in the first step.

    I hope this helps.

    Regards,
    Sweta

    Thread Starter WordCamp Bilbao 2024

    (@desberdin)

    Thank you very much for the quick response. Yes, I had it done with javascript. I just wish I didn’t have to do it this way.

    Regarding the code, in case someone reads the post in the future, just add script tags so it can work:

    add_action('wp_footer', function(){
        echo '<script>jQuery(".uag-post-carousel-test .uagb-post__image a").attr( "href", "javascript:void(0);" );</script> ';
    });

    again,
    Thank you very much for your big good work

    Plugin Support Team Brainstorm Force

    (@brainstormteam)

    You’re most welcome, @desberdin! ??

    I’m glad it works out for you. Thanks for letting me know.

    If you need any further help, please do let us know.

    Regards,
    Sweta

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove tags from carousel’ is closed to new replies.