• Resolved c4m

    (@c4m)


    Hi,

    i really love your plugin, it’s actually what i was looking for.
    But i have a question:
    Is it possible to make the spoken language non-clickable?
    In my case it’s not linking to the correct page, because i am displaying the language as for example “English 5.1” and the dot is causing problems.

    It would be so great if you have any advice for me!

    Best regards,
    Alina

    https://www.ads-software.com/plugins/wpmovielibrary/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi there Alina,

    There’s no internal way to do this, but you can achieve the same result by adding this code to your theme’s functions.php file:

    function wpmoly_strip_language_links( $data ) {
    	return strip_tags( $data );
    }
    add_filter( 'wpmoly_format_movie_spoken_languages', 'wpmoly_strip_language_links', 20, 1 );

    This will simply strip the HTML tags on the spoken languages lists :).

    Thread Starter c4m

    (@c4m)

    Hi Charlie,

    it’s working. Thank you!! ??

    Best regards,
    Alina

    Thread Starter c4m

    (@c4m)

    Hey Charlie,

    do you have the same function for the Local Release Date link?

    Because the link is linking to an empty side for some reasons.

    Best regards,
    Alina

    Sure: just go ahead and duplicate the filter with a slight modification:

    function wpmoly_strip_language_links( $data ) {
    	return strip_tags( $data );
    }
    add_filter( 'wpmoly_format_movie_local_release_date', 'wpmoly_strip_language_links', 20, 1 );
    add_filter( 'wpmoly_format_movie_spoken_languages', 'wpmoly_strip_language_links', 20, 1 );
    Thread Starter c4m

    (@c4m)

    Thank you so much!!

    You’re very welcome!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Make the spoken language non-clickable’ is closed to new replies.