Skip to main content
All CollectionsSharing Your Card
Embedding Your Digital Business Card on a WordPress Site

Embedding Your Digital Business Card on a WordPress Site

Embedding Your Business Card on a WordPress Website

Sebastien Barrau avatar
Written by Sebastien Barrau
Updated this week

You can add your BusinessCards.io embed script to WordPress using the Custom HTML block or by adding it to your theme.


โ€‹

๐ŸŽจ Customize Your Button

  1. Log into your account.

  2. Open the business card you would like to embed on your site.

  3. Click Get Embed Button on your card page.

  4. Customize:

    • Background Color

    • Text Color

    • Button Text (leave blank to use just the icon)

    • Button Position (Inline, Bottom Right, Bottom Left)

๐Ÿ› ๏ธ Add the Code to WordPress

Option 1: Inline Button

If you chose **Inline** positioning:

1. Go to your WordPress dashboard.

2. Edit the post or page where you want the button.

3. Add a Custom HTML block.

4. Paste your embed code inside.

<script src="https://businesscards.io/js/businesscard_embed.js"
data-card-slug="your-card-slug"
data-button-color="#4F46E5"
data-button-text-color="#FFFFFF"
data-button-text="View Business Card"
data-button-position="inline">
</script>

Option 2: Floating Button (Bottom Right or Bottom Left)

  1. Go to Appearance > Theme File Editor.

  2. Open footer.php.

  3. Paste your embed code before the closing </body> tag:

<script src="https://businesscards.io/js/businesscard_embed.js"
data-card-slug="your-card-slug"
data-button-color="#4F46E5"
data-button-text-color="#FFFFFF"
data-button-text="View Business Card"
data-button-position="bottom-right">
</script>

โœ… The button will now appear on every page where your footer is loaded.

โœ… Thatโ€™s it!

The embed button will now appear on your site and open your card in a sleek popup when clicked.

Did this answer your question?