Replies: 0
I have a site where the caption has a link that we want to open in a new window, but it seems MetaSlider (Pro, as well) is stripping target=”_blank” from the link.
I needed to implement the following in the theme’s functions.php file:
// Allow MetaSlider to serve up what was provided without alteration (don't remove target="_blank" from links in the caption and more.)
add_filter('metaslider_filter_unsafe_html', '__return_false');
to get it to stop doing that.
I understand why filtering out unsafe content is being done, but why is target=”_blank” being stripped out from links in the caption in the process?
Hopefully, this is a small adjustment and I can go back to using the filtered output while still being able to have links in a caption open in a new window when appropriate.
Thanks for the great plugin (I’ve been using it for years & years),
Kurt