• This is not a bug, but rather a great improvement.

    But first let me give you a small background detail on my “problem”.

    Until now I only had Pages in my website. So, I had ticked only Pages in the Options of the Sharing Buttons Above Content. Using custom CSS, I tweaked a little the position of the buttons row, adding some margins to align the buttons where I wanted them to appear and everything was fine.

    After some additions to my website, I added a lot of Posts as well, so I also ticked the Posts option under Sharing Buttons Above Content > Options.

    The buttons row appeared, but it was affected by the Custom CSS for the .addthis_toolbox property.

    Similarly, I wanted to display the buttons in the Homepage as well, but as I have a revolution slider on my homepage, it pushes the fullscreen sliders down to display the buttons at the very top of the homepage. If I could use specific CSS for the buttons row specifically for the homepage, I could move them where I’d like them to be.

    Additionally, while I wanted to use both buttons above the content, and below it, I couldn’t distinguish each row to apply different CSS to each of them, so I totally dropped the buttons below content.

    Having said all of the above, here comes the suggestion!!!

    It would be great if you added “orphan” class names describing each button row. Ie, for the buttons in a Page, add the class page, for the buttons in a Post, add the class post. For the buttons on the Homepage, add the class homepage, etc… Similarly, for the buttons above the content, add the class above, and for the buttons below the content, add the class below.

    This way, the developer can write specific CSS for each of them to tailor their position according to his/her needs.

    If we don’t see this coming in the next version of this great plugin, would anyone have the kindness to help/guide me for the modifications needed to implement it in my website?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter princeofabyss

    (@princeofabyss)

    After reading my post, I realized that class names like page, post, homepage, above, below, might interfere with potentially existing classes, so you might consider using names like addthis_page, addthis_post, addthis_above etc…

    Thread Starter princeofabyss

    (@princeofabyss)

    I modified the code to my installation, but I’m really curious… One week, and no reply from the dev. Isn’t it really a nice addition to the plugin?

    Plugin Contributor Julka Grodel

    (@jgrodel)

    Hi princeofabyss.

    Thanks for letting us know about your issue. Have you tried the Smart Layers by AddThis plugin instead of Share Button by AddThis? It uses different classes like you suggest.

    Thanks,
    Julka

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Specific class according to content type’ is closed to new replies.