Where to Paste Your Social Media Button Code
After generating your social media icons with NiftyButtons, here's exactly where to paste the HTML code on different platforms.
WordPress
Method 1: Widget Area (Easiest)
- Go to Appearance → Widgets in your WordPress dashboard
- Add a "Custom HTML" widget to your desired widget area (sidebar, footer, etc.)
- Paste your NiftyButtons code into the widget
- Click "Save"
Method 2: In Posts/Pages
- Edit any post or page
- Add a "Custom HTML" block (in Gutenberg) or switch to "Text" mode (Classic Editor)
- Paste your code where you want the icons to appear
- Update/Publish the page
Method 3: Theme Header/Footer
- Go to Appearance → Theme Editor
- Select header.php or footer.php
- Paste code before </header> or </footer> tag
- Update file (be careful - backup first!)
Squarespace
- Edit the page where you want to add icons
- Click the "+" button to add a new block
- Select "Code" from the menu
- Paste your NiftyButtons HTML code
- Make sure "Display Source" is OFF
- Click "Apply" and save your changes
Note: Code blocks require a Business plan or higher on Squarespace.
Wix
- Open the Wix Editor
- Click "Add" → "Embed" → "HTML iframe"
- Click "Enter Code"
- Paste your NiftyButtons code
- Click "Update"
- Resize and position the frame as needed
- Publish your site
Shopify
In Theme Footer/Header:
- Go to Online Store → Themes
- Click "Actions" → "Edit code"
- Find header.liquid or footer.liquid in the Sections folder
- Paste your code where you want icons to appear
- Save the file
In Product Pages:
- Edit product description
- Click "Show HTML" button
- Paste your code
- Save changes
HTML Website
- Open your HTML file in a text editor
- Find where you want the icons (usually in <header>, <footer>, or <aside>)
- Paste the NiftyButtons code
- Save the file
- Upload to your web server
Common Locations:
- Header: Right before </header>
- Footer: Right before </footer>
- Sidebar: Inside <aside> tags
- After content: Before </main> or </article>
💡 Pro Tips
- Always preview changes before publishing
- Test on mobile devices to ensure icons look good
- Consider wrapping icons in a <div> with custom CSS for better positioning
- Make a backup before editing theme files
- Use browser developer tools to test placement before making permanent changes