Add a Facebook Like Button to Your Website

Add a Facebook Like Button to Your Website

By Michael Thompson

January 18, 2025 at 02:50 PM

To add a Facebook Like button to your website, follow these simple steps:

For Version 7.1 Sites:

  1. Generate the Facebook Like Button Code:
  • Visit Facebook's Like Button Configurator
  • Customize your button settings
  • Copy both code snippets provided
  1. Add the SDK Code:
  • Go to your Squarespace site's Code Injection panel
  • Paste the Javascript SDK code in the Header field
  • Save changes
  1. Place the Like Button:
  • Open the page where you want the button
  • Add a Code Block at desired location
  • Paste the Like button code
  • Preview to verify appearance

For Blog-Specific Like Buttons:

  1. Navigate to Blog Settings:
  • Open Pages panel
  • Access Blog Page settings
  • Go to Advanced tab
  1. Customize the Code:
  • Paste Like button code in Blog Post Item Code Injection
  • Replace site URL with {permalink}
  • Save changes

When logged in, the button may not display due to security measures. View your site while logged out or in incognito mode to see the button.

Important Notes:

  • Disable existing Facebook share buttons before adding custom ones (Version 7.0)
  • Code customization may affect mobile responsiveness
  • Button appearance varies by template
  • Regular updates might impact functionality
  • Test across different devices and browsers

Version 7.0 users should consider using built-in sharing buttons instead of custom code for better compatibility and support.

The Facebook Like button allows visitors to share your content directly to their Facebook news feeds, increasing your content's visibility and reach.

Related Articles

Previous Articles