Article

  • 2 years

    2 years

    YetiShare / Core

    867

Use "addthis" instead of the current social sharing icons on the Flow theme

In _header.inc.php remove:

<!-- Social Share Icons -->          <link rel="stylesheet" type="text/css" href="<?php echo SITE_THEME_PATH; ?>/frontend_assets/socialsider-v1.0/_css/socialsider-v1.0.css" media="all" />
<!-- social slider --><p><!-- social slider -->
            <div class="reponsiveMobileHide socialsider socialsider_right_middle socialsider_fixed socialsider_bgcolor_white socialsider_opacity">
                <ul>
                    <li><a data-socialsider="facebook" target="_blank" href="http://www.facebook.com/sharer/sharer.php?u=<?php echo WEB_ROOT; ?>" title="Facebook"></a></li>
                    <li><a data-socialsider="twitter" target="_blank" href="https://twitter.com/share?url=<?php echo WEB_ROOT; ?>" title="Twitter"></a></li>
                    <li><a data-socialsider="google" target="_blank" href="https://plus.google.com/share?url=<?php echo WEB_ROOT; ?>" title="Google"></a></li>
                    <li><a data-socialsider="linkedin" target="_blank" href="https://www.linkedin.com/cws/share?url=<?php echo WEB_ROOT; ?>" title="Linkedin"></a></li>
                    <li><a data-socialsider="reddit" target="_blank" href="http://www.reddit.com/submit?url=<?php echo WEB_ROOT; ?>&title=<?php echo SITE_CONFIG_SITE_NAME; ?>" title="Reddit"></a></li>
                    <li><a data-socialsider="pinterest" target="_blank" href="https://pinterest.com/pin/create/bookmarklet/?media=<?php echo SITE_THEME_PATH; ?>/frontend_assets/images/icons/favicon/apple-touch-icon-114x114.png&url=<?php echo WEB_ROOT; ?>" title="Pinterest"></a></li>
                </ul>
            </div>
            <!-- end social slider -->   </p><!-- end social slider -->

Under the <head> tag add your "addthis" code. It says to insert on <body> but this will not work:

<!-- Go to www.addthis.com/dashboard to customize your tools --> <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=YOURPUBLISHERIDHERE" async></script>

Credit: coffee