Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1451873

    Good morning,

    I would like to modify the standard social network sharing message which appears to the left and above the icons chosen in the theme “share this article” by another message that is more inciting and framed in the center like “Did you like this article? Share it!” centered

    what is the best solution in your opinion?

    Regards,

    Yvon

    • This topic was modified 3 months, 1 week ago by YMen45.
    #1451891

    Hey Webmaster,
    Thanks for the link to your page, I believe that you want the text to say: As-tu aimé cet article? Partagez-le!, I used Google Translate, if this is not quite right feel free to adjust the code below.
    Try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:

    function change_share_box_text() { ?>
      <script>
    (function($){
      var el = document.querySelector('.av-share-link-description');
             el.outerHTML = '<h5 class="av-share-link-description av-no-toc" style="text-align: center;">' + 'As-tu aimé cet article? Partagez-le!' + '</h5>';
    })(jQuery);
    </script>
      <?php
    }
    add_action( 'wp_footer', 'change_share_box_text', 99 );

    Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.

    Best regards,
    Mike

    #1451896
    This reply has been marked as private.
    #1451904

    Hi,
    Strong is <strong> ... </strong>
    Glad we were able to help and thanks for sharing your solution, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘social sharing’ is closed to new replies.