Website Button

Setup Guide

How to configure a button for your site

This guide explains how to customize your "Buy Me a Beer" button and embed it on your website that your supporters can access your buymeabeer.online page directly from another site. Users who click the button will open new browser tab and be sent to your buymeabeer.online page.

1. Configuring Your Button

  1. Login: Log in to your buymeabeer.online account.
  2. Navigate to Settings: Go to the "Settings - Buttons" section of the dashboard
  3. Customize Appearance:
    • Background: Use the gradient picker to choose a solid color, gradient, or even an image for your button's background.
    • Emoji: Select an emoji to add a personal touch to your button.
    • Button Text: Customize the text displayed on your button. The default is "Buy Me a Beer Online," but you can change it to something more specific to your content, like "Support My Work" or "Donate a Coffee."
  4. Preview: As you customize your button, a preview will be displayed, so you can see how it will look on your website.
  5. Embed Code: Once you're happy with the design, copy the provided embed code. This code contains an iframe element that you'll use to embed the button on your website.

2. Embedding Your Button

2.1 General Website Integration

  1. Paste the Embed Code: Paste the copied embed code into the HTML of your website where you want the button to appear.
  2. Adjust Size (Optional): You can adjust the width and height of the iframe in the embed code to fit your website's design.

2.2 Specific Platforms

WordPress:

  1. Use a Custom HTML Block: In the WordPress editor, add a "Custom HTML" block to your page or post.
  2. Paste the Code: Paste the embed code into the Custom HTML block.

Notion:

  1. Create an Embed Block: In Notion, add an "Embed" block.
  2. Paste the URL: Instead of pasting the entire iframe code, paste the URL from the iframe's src attribute into the Embed block. Notion will automatically embed the content.

Substack:

  1. Use the Code Injection Feature: Go to your Substack publication settings.
  2. Find the Code Injection Section: Look for the section where you can add custom HTML code (usually in the "Design" or "Code" settings).
  3. Choose Header or Footer: You can choose to inject the code in the <head> section of your Substack pages (for global inclusion) or within a specific post's <body> section.
  4. Paste the Embed Code: Paste the code into the appropriate code injection field.

Other Platforms:

  • Most website builders and blogging platforms provide ways to add custom HTML. Look for "Custom HTML" blocks, "Embed" widgets, or "Code Injection" options in your platform's settings or editor.

3. Additional Notes

  • Responsive Design: The embedded button is designed to be responsive and should adapt to different screen sizes.
  • Security: The iframe embed method is a secure way to include content from another website. The iframe's content is isolated from your main website's code.
  • Customization Options: We may add more customization options in the future. Let us know if you have any feature requests!

Example Embed Code:

<iframe 
  src="https://www.buymeabeer.online/joe/embed?emoji=%F0%9F%8D%BB&background=%2309203f&buttonText=Buy%20Me%20a%20Beer%20Online"
  width="300" 
  height="200" 
  title="Buy Me a Beer Online" 
  frameborder="0"
></iframe>