Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Contributor dudo

    (@dudo)

    Hello, what plugin are you using for sharing?

    Thread Starter Ocio132

    (@ocio132)

    scriptless-social-sharing

    Plugin Contributor dudo

    (@dudo)

    Just add this code in your child theme ??

    add_filter('scriptlesssocialsharing_posttitle', static function ($title) {
        $post_id = get_the_ID();
    
        return html_entity_decode(get_post_field( 'post_title', $post_id, 'raw' ));
    });

    Let me know!

    Best,
    Dario

    • This reply was modified 3 years ago by dudo.
    Thread Starter Ocio132

    (@ocio132)

    Plugin Contributor dudo

    (@dudo)

    There is some error in the paste, please, be sure to copy this as is

    
    add_filter('scriptlesssocialsharing_posttitle', static function ($title) {
        $post_id = get_the_ID();
    
        return html_entity_decode(get_post_field( 'post_title', $post_id, 'raw' ));
    });
    

    The symbol ' is replaced with text & #039;

    • This reply was modified 3 years ago by dudo.
    • This reply was modified 3 years ago by dudo.
    • This reply was modified 3 years ago by dudo.
    Thread Starter Ocio132

    (@ocio132)

    Thread Starter Ocio132

    (@ocio132)

    Plugin Contributor dudo

    (@dudo)

    Did you put that code in your the functions.php file of your child theme?

    I’ve tested with email and whatsapp and it working indeed.

    https://ibb.co/Ky6NFWs

    Thread Starter Ocio132

    (@ocio132)

    If in fact I have more things that work on the child theme

    Thread Starter Ocio132

    (@ocio132)

    now it works thank you very much

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘TITLE’ is closed to new replies.