WordPress.org

Ready to get started?Download WordPress

Forums

Share Buttons by AddToAny
[resolved] [Plugin: AddToAny: Share/Bookmark/Email Buttons] Remove CSS completely (5 posts)

  1. JSauce16
    Member
    Posted 3 years ago #

    Hello,

    On my site, TweetMyHome I installed AddToAny, however, it seems there are still some css issues.

    My "email" span should be the only one applied, and should have a little icon next to the "Email It" link. You can also see that the text is not aligned properly. How can I strip the extra HTML tags that are throwing off the look of the button? (It is located right below the thumbnail images where it says "Email It")

    Help is greatly appreciated!

    Thanks,

    Jon

  2. JSauce16
    Member
    Posted 3 years ago #

    Can anyone please help on this?

  3. micropat
    Member
    Plugin Author

    Posted 3 years ago #

    Sure, from the FAQ:

    "How can I add just the button to another area of my theme?"

    <?php if( function_exists('ADDTOANY_SHARE_SAVE_BUTTON') ) { ADDTOANY_SHARE_SAVE_BUTTON(); } ?>

    This will place just the button without the AddToAny "Kit" div container.

  4. JSauce16
    Member
    Posted 3 years ago #

    The key is that I just want text, so I can have my own style... no button.

    This is what I was trying to do:

    <span class="mail"><?php if( function_exists('ADDTOANY_SHARE_SAVE_KIT') ) { ADDTOANY_SHARE_SAVE_KIT(); } ?>

    That is my span class that I want to maintain. It works with text, but it is still throwing off the class a bit. It is still added some extra classes. Help appreciated!

    Thanks,

    Jon

  5. micropat
    Member
    Plugin Author

    Posted 3 years ago #

    You can select a text-only "button" in the plugin's settings panel.

    You'll want to use this code instead:
    <?php if( function_exists('ADDTOANY_SHARE_SAVE_BUTTON') ) { ADDTOANY_SHARE_SAVE_BUTTON(); } ?>

    It differs from what you're currently using: ADDTOANY_SHARE_SAVE_KIT vs. ADDTOANY_SHARE_SAVE_BUTTON. You want to use ADDTOANY_SHARE_SAVE_BUTTON.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags