Show social media buttons on the front page

  • Ricardo

    #19397

    Maybe a stupid question, but I tried adding it to my child theme like this

    #addthis_toolbox {
    padding: 10px 0 0 0;
    }

    But that didn’t work. What am I doing wrong?

    Anonymous

    #19398

    I think your # should be a .

    Ricardo

    #19399

    @ Josh I actually tried both, but they wouldn’t work.

    You wouldn’t happen to know the difference between the . and the # when working with CSS would you?

    Anonymous

    #19400

    The . is used as a class selector. If you use the period, the class can be applied to multiple tags, ie <div class=""><p class=""><a class=""> etc. and uses the “class” call.

    The # is meant to be applied to a single tag. It uses the “id” call. <div id="">

    @ Ricardo,

    Did you try Ken’s #3 suggestion above?

    Mod

    Kenneth John Odle

    #19401

    Yes, basically, id’s are used for things that appear once on each page: header, footer, content, sidebar1, sidebar2, etc. Took me ages to get my mind around this.

    Ricardo

    #19402

    That makes sense. I’ll make a mental note 😉

    The ‘Tweet’ button is overlapping the ‘Like’ counter, can I do something about that?

    Also the counter doesn’t work, as it is always showing the mystery number ’47’ and Google+1 always ‘4’.

    Mod

    Kenneth John Odle

    #19403

    The ‘Tweet’ button is overlapping the ‘Like’ counter, can I do something about that?

    Not on my end–it actually looks pretty good over here. There’s at least 1cm of distance between them on my 1280 screen, even in IE9.

    That thing about the numbers though, that’s weird. I only found one post about that on the addthis help forum, and it suggested that everything will go back to normal before too long. Might just be a temporary bug.

    Ricardo

    #19404

    I’ll wait this one out then 🙂 Thank you so much for your help! (both of you of course)

    Ricardo

    #19405

    A small update: I found out why the ‘Tweet’ button is overlapping my Facebook counter. In English the button is short and called ‘Like’. However, in Dutch it’s called ‘Vind ik leuk’ which makes it double the size. Solved by changing the code to this:

    <a class="addthis_button_facebook_like" fb:like:locale="en_US" layout="button_count"></a>

Viewing 9 posts - 11 through 19 (of 19 total)

  • 1
  • 2
  • You must be logged in to reply to this topic.