All Products 
Username / Customer#
Password
Log In
 Hi,  |  Log Out
  • Site Search
  • Domain Search
  • WHOIS Domain Check
24/7 Support: (480) 505-8877
Hablamos Español
9 AM to 9 PM IST
7 days a week
Go Daddy Support

Search help articles, forums, and discussion groups

Facebook "LIKE" button is sidebar widget (for shopping cart)

Viewing post 1 to 9 (9 total posts)
Profile picture of avidgeek

avidgeek said 1 year, 1 month ago:

Anyone ever do this?? I have the SDK code, and the two other pieces of code all pasted into the html window for the widget and I’m getting several errors.

The site I have was strictly a shopping cart but I’m seeing the limitations of trying to make the shopping cart “MORE” than what it truly is, a shopping cart. Still, I’d like to think I could add something simple like the “LIKE” button.

Profile picture of Nate D

Nate D said 1 year, 1 month ago:

@avidgeek – While you are correct that Quick Shopping Cart is only intended to create a shopping cart, you should be able to add a Facebook “Like” button.

I am unsure where you are having troubles. Generally there would be 2 pieces of code (make sure you are selecting the option for HTML5), a JavaScript and a Div where you want the button to display. The JavaScript should only be included once per page, while the button div can be added in different places. But you can add the JavaScript in the same place as the div.

Again, I would just make sure you are grabbing the HTML5 code:

http://developers.facebook.com/docs/reference/plugins/like/

Post back how it works out for you.

Profile picture of SteveS

GoDaddy Expert steves said 1 year, 1 month ago:

@avidgeek

I agree with Nate D. You should be able to add this without issue. I would follow Nate D’s suggestions and let us know if you are still having issues.

-Steve

Profile picture of jackie607

jackie607 said 1 year ago:

where do you insert the codes at? The advanced CSS section?

Profile picture of TimB

GoDaddy Expert timb said 1 year ago:

@jackie607

You would want to add an HTML widget to your side bar to add this code. You can use this help article for steps on adding the widget:

Managing Widgets in Quick Shopping Cart

Tim B

Profile picture of NikkiB

nikkib said 1 year ago:

@ Nate D: I have a business facebook page that is linked to my personal facebook profile. I got the code from facebook for a like button and attempted to follow your instructions to paste the code into my web page, but nothing happens. Do you have further instructions? Twitter’s process is much easier. I wonder Facebook is so difficult.

Profile picture of StacyWells

stacywells said 11 months, 1 week ago:

I am really exhausted researching the code placement for the Facebook ‘like’ button. Also, this process causes me to wonder if I even have the right code. I have read through the ‘Managing Widgets in Quick Shopping Cart’ and review the section about Social Media and Quick Shopping Cart. Are there video tutorials that show how to insert the code (and where)? Thanks for the help.

Profile picture of Nate D

Nate D said 11 months, 1 week ago:

@nikkib & @stacywells – Make sure your selecting the HTML5 code.

http://developers.facebook.com/docs/reference/plugins/like/

There should be 2 snippets of code, place both in HTML where you want it to display on your website.

Profile picture of katminla

katminla said 3 weeks, 2 days ago:

Hi – I’m having trouble with this – not sure why, but I get the 2 pieces of code from the Facebook site, I add them to the Widget in the “Standard Editor” window. When I try to verify the code, I get the following list of errors:

Content (Line 2, Column 9): Attribute “type” is required and must be specified for element type “script”.
Content (Line 9, Column 148): Attribute “data-href” must be declared for element type “div”.
Content (Line 9, Column 148): Attribute “data-send” must be declared for element type “div”.
Content (Line 9, Column 148): Attribute “data-width” must be declared for element type “div”.
Content (Line 9, Column 148): Attribute “data-show-faces” must be declared for element type “div”.
Content (Line 9, Column 148): Attribute “data-font” must be declared for element type “div”.

Here’s what the code looks like:

<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/all.js#xfbml=1″;
fjs.parentNode.insertBefore(js, fjs);
}(document, ‘script’, ‘facebook-jssdk’));</script>
<div class=”fb-like” data-href=”http://www.nohosoapcompany.com” data-send=”true” data-width=”450″ data-show-faces=”true” data-font=”lucida grande”></div>

I’m a code dummy, so any help would be greatly appreciated. Thanks!

Add a reply:

You will auto join this group when you reply to this topic.

When posting about a technical issue, please be sure to include as many details as possible, such as your domain name, related URLs and other pertinent information. This consideration will allow us to better understand the situation and quickly assist you.