Forums

[Plugin: Add to Any: Share/Bookmark/Email Button] Button added to MailPress emails (6 posts)

  1. angelopc
    Member
    Posted 3 years ago #

    Can this somehow be avoided, other than unchecking the option to add the button to the bottom of posts?

  2. micropat
    Member
    Posted 3 years ago #

    You could always uncheck that option and place the template code somewhere in your theme instead.

    Directions are located within the plugin's settings panel located in Settings > Share/Save Buttons under Button Placement.

  3. angelopc
    Member
    Posted 3 years ago #

    Yes, I've done that. However, when doing that, you can't customize services. You get the "share/save" button and that's it. You can't use the individual service icons.

  4. micropat
    Member
    Posted 3 years ago #

    You actually can! It's not yet documented within the settings panel, but I pulled this from the FAQ:

    <?php echo '<ul class="addtoany_list">';
    if( function_exists('ADDTOANY_SHARE_SAVE_ICONS') )
        ADDTOANY_SHARE_SAVE_ICONS( array("html_wrap_open" => "<li>", "html_wrap_close" => "</li>") );
    if( function_exists('ADDTOANY_SHARE_SAVE_BUTTON') )
        ADDTOANY_SHARE_SAVE_BUTTON( array("html_wrap_open" => "<li>", "html_wrap_close" => "</li>") );
    echo '</ul>'; ?>
  5. mrdibs
    Member
    Posted 2 years ago #

    Is there some kind of inverse of this code? Is there something I can put in my template that will STOP the buttons from showing up on certain pages short of manually typing in <--noshare--> or whatever.

  6. micropat
    Member
    Posted 2 years ago #

    @mrdibs, you can place that code in whichever theme files you desire so that the button only displays on certain pages. Did you have something else in mind?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags