Home>Support>Place Like (FV), +1 (Google+), Pin It (Pinterest, etc. Buttons in Header

Place Like (FV), +1 (Google+), Pin It (Pinterest, etc. Buttons in Header

By BFPS, 9 years ago. Last reply by Andrew Misplon, 9 years ago.

Hello,

Could you please tell me how to insert all of the social media buttons mentioned in the thread title in this specific area?:

http://img.techpowerup.org/150618/6-18-201510-40-27AM.jpg

I would appreciate any help. Thanks!

URL: http://img.techpowerup.org/150618/6-18-201510-40-27AM.jpg

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 3 months ago BFPS

    Oops, just noticed a misspelling. I meant to put “Place ‘Like’ button (FB = Facebook)…”

  2. 9 years, 3 months ago Andrew Misplon
    Hi, I Work Here

    Hi BFPS

    Thanks for reaching out.

    There are lots of different plugins that add a widget to your installation that could be used at Appearance > Widgets > Header. You could use our Social Icons widget, part of our Widgets Bundle:

    https://wordpress.org/plugins/so-widgets-bundle/

    Let us know how you come along :)

  3. 9 years, 3 months ago BFPS

    Hey Andrew,

    Thanks for the advice, but when I refresh the page after placing the widget in the header section, nothing shows up. Is there something else I need to activate for it to appear? Just so you know, I have a static home page.

  4. 9 years, 3 months ago Andrew Misplon
    Hi, I Work Here

    Are you perhaps using the Logo in Menu masthead layout? There is unfortunately no widget area in the menu. In that case you might consider adding icons to your menu using:

    https://wordpress.org/plugins/menu-icons/

  5. 9 years, 3 months ago BFPS

    That’s a nice plugin and I’ll probably use it, but it’s not exactly what I am seeking.

    I went to the Facebook Developer’s page and this is the code they gave me to place anywhere on the page:

    “”

    Where would I need to place this so that it goes directly *above* (right-aligned) the entire logo in menu masthead layout?

  6. 9 years, 3 months ago Andrew Misplon
    Hi, I Work Here

    It’s unfortunately hard to see what’s going on in your screenshot, sorry. Could you perhaps send through a link to your site so we can see what’s going on with the header widget area. Please also see my comments re: the masthead layout. If you’re using Logo in Menu there is no header widget area available. Thanks :)

  7. 9 years, 3 months ago Private Message - BFPS

    This is a private message.

  8. 9 years, 3 months ago Andrew Misplon
    Hi, I Work Here

    Thanks.

    There is no header widget area when using the Logo in Menu layout. You’d need to make use of the Default masthead. The masthead layout can be set from Appearance > Theme Settings > Layout > Masthead Layout. Once you’ve reverted to default the widget area at Appearance > Widgets > Header will render in the header.

    Your page looks like it’s missing the Page Wrapper div. Do you know if theme files have been edited at a code level? That would explain what’s happening.

  9. 9 years, 3 months ago Private Message - BFPS

    This is a private message.

  10. 9 years, 3 months ago Andrew Misplon
    Hi, I Work Here

    Most likely header.php. All WordPress themes completely overwrite their own folder during theme updates. Please remember, don’t make any changes via Appearance > Editor unless you’re using a child theme.

    You can insert Facebook scripts with a plugin called “Header and Footer Scripts”.

    :)

  11. 9 years, 3 months ago BFPS

    Andrew,

    I tried that plugin and followed the instructions on the FB plugin page here and nothing shows up, I don't get it.

    I forgot to attach the image on the exact area I want these buttons to appear in the last message, so I'm attaching it now. If only there was a way to know where exactly to place this code. Frustrating!

  12. 9 years, 3 months ago Andrew Misplon
    Hi, I Work Here

    Let’s take a quick step back for a moment.

    Placing anything in the header is waaaay easier if you switch to the default Masthead. Just set the masthead background color to be the same as your menu color and reduce the padding in the header, all in Appearance > Customize > Theme Design and you’ll have the setup. Are you with me when I say that Appearance > Widgets > Header will not render when you use the Logo in Menu masthead layout? Just want to make sure we’re on the same page on that point.

  13. 9 years, 3 months ago Andrew Misplon
    Hi, I Work Here

    When you say nothing shows up, where are you placing the front end portion of the Facebook code? The code is made up of two parts. One part, the script, goes into the header field provided by the Header and Footer Scripts plugin. The second part, the front end display portion goes at Appearance > Widgets > Header. Appearance > Widgets > Header only renders if you use the default masthead layout.

  14. 9 years, 3 months ago Andrew Misplon
    Hi, I Work Here

    Hope this all helps :) If not we can always login and take a quick look for you.

  15. 9 years, 3 months ago BFPS

    Hmm, I always figured that reverting back to the default masthead wouldn't be as attractive, that's why I was trying to do this another way.

    As far as the code, maybe that's why it wasn't showing up. I was using the same masthead layout I have currently.

    I changed the password so you can log in and work your magic:
    RollDanTide/password32

    Please revert to the default masthead and let me see if I like it first,
    thank you, Andrew.

  16. 9 years, 3 months ago Private Message - BFPS

    This is a private message.

  17. 9 years, 3 months ago Andrew Misplon
    Hi, I Work Here

    Sweet, I’ll dive in now.

  18. 9 years, 3 months ago Andrew Misplon
    Hi, I Work Here

    Mmm ok so I’m unable to change the masthead layout. You’ll need to jump in for us here. I’m assuming it’s linked to edits that have been made.

    Please remember: It’s not safe to edit the theme. Child theme to be update safe.

    I can dive in again once we’re back to normal.

  19. 9 years, 3 months ago Private Message - BFPS

    This is a private message.

  20. 9 years, 3 months ago Andrew Misplon
    Hi, I Work Here

    Ok cool so couple of things to try:

    1. Turn off all plugins for a moment. Do theme settings work then?

    2. Or to be sure, switch to another theme, delete Vantage and re-install using the ZIP file.

  21. 9 years, 3 months ago Private Message - Andrew Misplon Hi, I Work Here

    This is a private message.

  22. 9 years, 3 months ago BFPS

    Okay, I did both steps. Deactivated all plugins, no effect. And deleted the theme and reinstalled it, and I don't see anything different. This is perplexing lol

  23. 9 years, 3 months ago Andrew Misplon
    Hi, I Work Here

    Cool, thanks. Checking now.

  24. 9 years, 3 months ago Andrew Misplon
    Hi, I Work Here

    Can you send me the FB code quick?

  25. 9 years, 3 months ago Andrew Misplon
    Hi, I Work Here

    The script and the front end markup.

  26. 9 years, 3 months ago BFPS

    Here you go:

    <div id="fb-root"></div>
    <script>(function(d, s, id) {
    var js, fjs = d.getElementsByTagName(s)[0];
    if (d.getElementById(id)) return;
    js = d.createElement(s); js.id = id;
    js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.3";
    fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>

    ..and…

    <div class="fb-like" data-href="http://www.facebook.com/directinteractions&quot;
    data-layout="standard" data-action="like" data-show-faces="false"
    data-share="false"></div>

  27. 9 years, 3 months ago BFPS

    This is unrelated, Andrew, but before I forget…there is a warning sign about the "initial" value in this custom CSS code. Here it is:

    /* Menu Search */

    #search-icon {
    bottom: 0;
    height: 20%;
    top: initial;
    }

  28. 9 years, 3 months ago Andrew Misplon
    Hi, I Work Here

    All sorted. Can I leave you dig around and refine from here?

    Settings > Header and Footer: Script
    Appearance > Widgets > Header: HTML

  29. 9 years, 3 months ago BFPS

    Nice, it's not exactly what I was looking for, but it'll make do. How could
    I right align this code?

    Also, please see the message I sent you right before you sent your last one. Thanks man

  30. 9 years, 3 months ago Andrew Misplon
    Hi, I Work Here

    initial is fine, not sure why CodeMirror is warning about that. If the value is working for you as required then I’d ignore the warning.

    It looks like the width is specified when you build that button in on FB’s site. It’s at 450 right now which is what’s pushing everything to the left.

  31. 9 years, 3 months ago BFPS

    Actually, it's not (that's why I checked the CSS code to begin with). For some reason, it started displaying like this (please see attached). It was working just fine before.

  32. 9 years, 3 months ago Andrew Misplon
    Hi, I Work Here

    Unfortunately no email attachments running on the forum yet.

    Sorry, this is a bit beyond the scope we can assist with. Hope you understand. We struggle to help everyone out if we dip too far into the customisations area or too far into other plugin support.

    This thread might help: http://stackoverflow.com/questions/4348235/how-can-i-make-the-facebook-like-buttons-width-automatically-resize.

    What I’d focus my search on is how to set the width manually. Once the width is set smaller the setup will right align. The header sidebar is right aligned by default. Try swapping out the Facebook code for a regular line of text and you’ll see the right align in action.

  33. 9 years, 3 months ago BFPS

    Sorry for the misunderstanding, the search button was like that before you added the plug-in or FB code, that's why I asked.

  34. 9 years, 3 months ago Andrew Misplon
    Hi, I Work Here

    My bad, reading too fast, didn’t realise we’re looking at search. Yeah, that’s in scope for sure. Let me check it out.

  35. 9 years, 3 months ago Andrew Misplon
    Hi, I Work Here

    Try removing the entire Custom CSS rule for this. Works on my side:

    Remove:

    #search-icon {
    bottom: 0;
    height: 20%;
    top: initial;
    }
    
  36. 9 years, 3 months ago BFPS

    Yep, that's the same code I have under my custom CSS. :/

  37. 9 years, 3 months ago BFPS

    Anyways, I removed it and still the same thing. Hmm

  38. 9 years, 3 months ago Andrew Misplon
    Hi, I Work Here

    Are you trying to sort out the search icon alignment? If so, remove the search rule in your Custom CSS and the alignment will be sorted.

  39. 9 years, 3 months ago Andrew Misplon
    Hi, I Work Here

    Your page is being cached. Please clear WP Super Cache.

  40. 9 years, 3 months ago Andrew Misplon
    Hi, I Work Here

    As a rough rule if you make a change and don’t see a result, think caching. Is this page being cached? Am I looking at a cached result?

  41. 9 years, 3 months ago BFPS

    I have the WP Super Cache plugin installed, but it is deactivated at this moment. I don't know of any other way that it is being cached.

  42. 9 years, 3 months ago Andrew Misplon
    Hi, I Work Here

    Try activating it then go to Settings > WP Super Cache and Delete Cache then Delete Cache button again on the next page.

  43. 9 years, 3 months ago BFPS

    Never mind, what I did was delete the plugin and it seemed to have fixed it from my end.

    Again, thanks for all your help and most importantly patience, Andrew. It is very much appreciated.

  44. 9 years, 3 months ago Andrew Misplon
    Hi, I Work Here

    Not sure why it was doing that. I know WP Super Cache was de-activated because I de-activated while we were making changes. When I inspected the page source I saw a cache result comment still there.

    Cool, no problem, glad we could help out.

    Cheers for now :)

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More