Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1013254
    Magik Web
    Participant

    Hello,
    Not sure if it’s theme-related or CornerStone related.
    We’re building a new website using X (Integrity) Theme and it’s our first attempt at it with this theme.
    https://v2.magikweb.ca/les-5-pires-verites-sur-pages-jaunes/

    Is there a way to put share buttons by default, maybe the theme template? We use CornerStone to build our articles.

    Thank you!

    #1013399
    Rahul
    Moderator

    Hello There,

    Implementing social sharing in blog posts will requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released.

    After that kindly add the code bellow in your functions.php.

    add_action('x_before_the_content_end', function() {
      echo do_shortcode('[share title="Share this Post" facebook="true" twitter="true" google_plus="true" linkedin="true" pinterest="true" reddit="true" email="true"]');
    });

    You can modify the Entry Share shortcode inside the do_shortcode function. See http://theme.co/x/demo/integrity/1/shortcodes/entry-share/ for sample setups.

    Hope that helps and kindly Let us know how this goes!

    Thanks.

  • <script> jQuery(function($){ $("#no-reply-1013254 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>