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
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
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