Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #163046

    Hello,

    I have added an addthis vertical bar as per the instructions here:

    https://kriesi.at/support/topic/placing-addthis-social-icons-into-the-header/

    I am using the new addthis smart layer option with the following code:

    <!– AddThis Smart Layers BEGIN –>
    <!– Go to http://www.addthis.com/get/smart-layers to customize –>
    <script type=”text/javascript” src=”//s7.addthis.com/js/300/addthis_widget.js#accoutcode”></script>
    <script type=”text/javascript”>
    addthis.layers({
    ‘theme’ : ‘light’,
    ‘share’ : {
    ‘position’ : ‘left’,
    ‘numPreferredServices’ : 4
    }
    });
    </script>
    <!– AddThis Smart Layers END –>

    However, it really doesn’t look great on the slider on the homepage so do you know of anyway to hide it from the homepage? I have searched the net but can’t find anything that would help.,

    Thanks

    Andrew

    #163318

    Hello awilson3rd!

    Yes, it is possible with CSS, can you post a link to your website please?

    Best regards,
    Josue

    #163461

    Hello Josue,

    Not at the moment. Could you provide me with the code??

    Thanks

    Andrew

    #163469

    Hey Andrew!

    Try this:
    .home div[class*=addthis]{ display: none; }

    Regards,
    Josue

    #163471

    Thanks Josue,

    Unfortunately it didn’t hide it?

    Andrew

    #163496

    Hi Andrew,

    Well, seeing the site live would greatly help finding a fix to your issue, if you don’t want to post the link you can send it to me at (Email address hidden if logged out)

    Cheers!
    Josue

    #163508

    Thanks Jose,

    It’s not a live site at the moment which is why I am just trying to find the code to change.

    Thanks

    Andrew

    #164104

    Hi Andrew,

    The best thing to do then would be to try and use dev tools with your browser to identify the css class selector and adjust the css for the item.

    This is a good intro video for how to do that: http://wptheming.com/2012/07/chrome-developer-tools-wordpress/

    Regards,

    Devin

    #164173

    Thanks for the reply.

    I think part of the problem is that the Smart Layers option for AddThis is fairly new and not as configurable as the WP plugin. The problem with the
    plugin is that as far as I can see you can’t add a vertical option, only horizontal which looks pretty crap.

    Stuck between a rock and a hard place!:-)

    Thanks again,

    Andrew

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Addthis Hide from homepage’ is closed to new replies.