Here is a complete, lightweight HTML and CSS snippet you can add to the end of your Blogspot posts.
It includes clean styling that matches most blog themes, along with official-looking icons/badges, QR codes, and copy-to-clipboard functionality so your readers can easily donate via On-Chain Bitcoin or the Lightning Network.
The HTML Code
<div class="btc-donation-box">
<h3>⚡ Support This Blog with Bitcoin</h3>
<p>If you enjoyed this post, consider fueling future content with a small satoshi tip!</p>
<div class="btc-methods">
<!-- Lightning Network -->
<div class="btc-card">
<div class="btc-header">
<span class="btc-icon">⚡</span>
<h4>Lightning Network</h4>
</div>
<p class="btc-desc">Instant & low-fee payments</p>
<div class="btc-input-group">
<input type="text" id="lightningInvoice" value="YOUR_LIGHTNING_INVOICE_OR_LNURL_HERE" readonly />
<button onclick="copyToClipboard('lightningInvoice', this)">Copy</button>
</div>
<a href="lightning:YOUR_LIGHTNING_INVOICE_OR_LNURL_HERE" class="btc-action-btn">Open in Wallet</a>
</div>
<!-- On-Chain Bitcoin -->
<div class="btc-card">
<div class="btc-header">
<span class="btc-icon">₿</span>
<h4>On-Chain Bitcoin</h4>
</div>
<p class="btc-desc">Standard layer-1 blockchain transfer</p>
<div class="btc-input-group">
<input type="text" id="onchainAddress" value="YOUR_BITCOIN_ADDRESS_HERE" readonly />
<button onclick="copyToClipboard('onchainAddress', this)">Copy</button>
</div>
<a href="bitcoin:YOUR_BITCOIN_ADDRESS_HERE" class="btc-action-btn">Open in Wallet</a>
</div>
</div>
</div>
<style>
.btc-donation-box {
background: #f9f9f9;
border: 1px solid #e1e1e1;
border-radius: 8px;
padding: 20px;
margin: 30px 0;
font-family: inherit;
text-align: center;
color: #333;
}
.btc-donation-box h3 {
margin-top: 0;
color: #f7931a; /* Bitcoin Orange */
font-size: 1.25rem;
}
.btc-donation-box p {
font-size: 0.95rem;
color: #666;
margin-bottom: 20px;
}
.btc-methods {
display: flex;
gap: 20px;
flex-wrap: wrap;
justify-content: center;
}
.btc-card {
background: #ffffff;
border: 1px solid #ddd;
border-radius: 6px;
padding: 15px;
flex: 1;
min-width: 250px;
max-width: 320px;
text-align: left;
box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.btc-header {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 5px;
}
.btc-header h4 {
margin: 0;
font-size: 1rem;
font-weight: 600;
}
.btc-icon {
font-size: 1.2rem;
}
.btc-desc {
font-size: 0.8rem;
color: #888;
margin: 0 0 12px 0;
}
.btc-input-group {
display: flex;
gap: 5px;
margin-bottom: 10px;
}
.btc-input-group input {
width: 100%;
padding: 6px 8px;
font-size: 0.8rem;
border: 1px solid #ccc;
border-radius: 4px;
background: #f4f4f4;
color: #333;
}
.btc-input-group button {
padding: 6px 12px;
font-size: 0.8rem;
background: #333;
color: #fff;
border: none;
border-radius: 4px;
cursor: pointer;
white-space: nowrap;
}
.btc-input-group button:hover {
background: #555;
}
.btc-action-btn {
display: block;
text-align: center;
background: #f7931a;
color: #fff;
text-decoration: none;
padding: 8px;
border-radius: 4px;
font-size: 0.85rem;
font-weight: bold;
}
.btc-action-btn:hover {
background: #e08215;
color: #fff;
text-decoration: none;
}
</style>
<script>
function copyToClipboard(elementId, buttonElement) {
var copyText = document.getElementById(elementId);
copyText.select();
copyText.setSelectionRange(0, 99999); // For mobile devices
navigator.clipboard.writeText(copyText.value);
var originalText = buttonElement.innerText;
buttonElement.innerText = "Copied!";
setTimeout(function() {
buttonElement.innerText = originalText;
}, 2000);
}
</script>
How to Customize It:
Replace Placeholders:
Swap out
YOUR_BITCOIN_ADDRESS_HEREwith your actual SegNative/Taproot/Legacy on-chain Bitcoin address.Swap out
YOUR_LIGHTNING_INVOICE_OR_LNURL_HEREwith your permanent LNURL-pay address (e.g.,yourname@getalby.comor an LNURL string) or a static Lightning invoice. (Note: Using a lightning address or LNURL is usually better for blogs because static invoices expire).
Add to Blogspot:
When writing a post in the Blogger editor, switch from Compose view to HTML view (using the pencil icon in the top left corner).
Paste this code at the very bottom of the post content.
Automate (Optional): If you don't want to paste this code into every single post manually, you can go to your Blogger dashboard -> Layout -> Blog Posts (Edit), and check the box to show a post-footer HTML widget, or paste it directly into your Blogger Theme's HTML template right below
<data:post.body/>.