• Resolved unns

    (@unns)


    Hello All,
    I am unable to add hashtags after sharing the post or image using this plugin. I am able to see the # in the custom description in the wordpress cms, but these hastags do not appear after sharing the image. Please help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author ILLID

    (@mihail-barinov)

    Hi,

    Please use following code snippet:

    add_action( 'wp_enqueue_scripts', 'sti_wp_enqueue_scripts', 9999999 );
    function sti_wp_enqueue_scripts() {
        $script = "
           function sti_chars_remove_regex( regex ) {
                return /[~@$%^&*()_|+\-=?;:'\",<>\{\}\[\]\\\/]/gi;
           }
           StiHooks.add_filter( 'sti_chars_remove_regex', sti_chars_remove_regex );
        ";
        wp_add_inline_script( 'sti-script', $script);
    }

    You need to add it somewhere outside the plugins folder. For example, inside functions.php file of your theme or use some plugin for adding code snippets.

    Regards

    • This reply was modified 3 years, 6 months ago by ILLID.
    • This reply was modified 3 years, 6 months ago by ILLID.
    Thread Starter unns

    (@unns)

    Thank you so much. This resolved the issue! Thanks a ton!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hashtags not displayed after sharing’ is closed to new replies.