Support » Plugin: Smart Layers by AddThis » Don't show on home page

Viewing 4 replies - 1 through 4 (of 4 total)
  • @brad_magnus: This is one feature we are planning to introduce in the plugin soon. As of now, the plugin doesn’t have such a feature. You may however use the configuration code from and place it in your theme file to handle this. If your theme have support for customising widgets, easiest way is to place it in a widget which wont show in the home page. If you are comfortable in touching the theme file, you may place the following code in the footer.php right after </body> in your theme folder.

    <?php if ( ! is_home() ) {?>
    <!-- AddThis Smart Layers BEGIN -->
    <!-- Go to to customize -->
    <script type="text/javascript" src="//"></script>
    <script type="text/javascript">
        'theme' : 'light',
        'share' : {
          'position' : 'right',
          'numPreferredServices' : 3
        'whatsnext' : {},
        'recommended' : {}
    <!-- AddThis Smart Layers END -->
    <?php } ?>

    Go to to customize the JS code to be used.

    @srijith.v For various reasons, I have a footer_home. Adding the above code doesn’t hide the it on the home page though. Doesn’t that add it?

    Maybe the best plan then is to use the code from your site, add it to the footer, and leave footer_home blank? Is that how the code works?

    @brad_magnus: It might not work properly if are having a static front page. You may try changing the first line to

    <?php if ( ! is_home() && !is_front_page() ) {?>

    to handle this. Again, this might not work if the theme is not properly structured. If you are sure that footer.php is not loaded into the home page, you can place code from there.

    I can help you with this if you let me know the theme you are using. You may send it to srijith[AT]

    Thanks @srijith.v! I do have a static front page. I’m building a custom theme based on Reverie: and I’m pretty sure that I’ve got things set up correctly. I might just go for the code from, though since even though I added that code to the footer_home.php it’s still visible on the home page.

    I’ll email you if I can’t get that to work properly. Thanks for being so willing to help out!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Don't show on home page’ is closed to new replies.