WordPress.org

Forums

Juiz Social Post Sharer
[resolved] Add text before socials buttons (3 posts)

  1. valou64
    Member
    Posted 1 year ago #

    Hi,

    Thanks for this great plugin!

    I have read topic (http://creativejuiz.fr/blog/doc/juiz-social-post-sharer-documentation.html#hooks) which explain how to add text before the buttons in file functions.php but in my file functions.php i don't know where to put the code:

    <?php
    if( !function_exists('before_the_jsps_plugin')) {
    function before_the_jsps_plugin() {
    return '<div class="another_container">';
    }
    }
    add_filter('juiz_sps_before_the_sps', 'before_the_jsps_plugin');
    ?>

    When i try to put the code in my file, nothing appears...

    http://wordpress.org/plugins/juiz-social-post-sharer/

  2. Geoffrey
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    Try using this code

    if( !function_exists('before_the_jsps_plugin')) {
       function before_the_jsps_plugin() {
          return '<p>My personal message before buttons</p>';
       }
       }
    add_filter('juiz_sps_before_the_sps', 'before_the_jsps_plugin');

    In your functions.php file, try to find at the end of the document, the symbol "?>".
    But the code just before ;)

    Thank you.

  3. Geoffrey
    Member
    Plugin Author

    Posted 1 year ago #

    No problem...
    Solved.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Juiz Social Post Sharer
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.