diff --git a/README.md b/README.md
index 59b9d99..62120f5 100644
--- a/README.md
+++ b/README.md
@@ -72,7 +72,7 @@ Lightweight social sharing component for web applications. Zero dependencies, fr
- 🌐 Multiple platforms: WhatsApp, Facebook, X, LinkedIn, Telegram, Reddit, Email, Pinterest, Discord
- 🎯 Zero dependencies - pure vanilla JavaScript
-- ⚛️ Framework support: React, Preact, Next.js, Qwik, Vue, Angular, or plain HTML
+- ⚛️ Framework support: React, Preact, Next.js, Nuxt.js, Qwik, Vue, Angular, WordPress, Hugo, Jekyll or plain HTML
- 🔄 Auto-detects current URL and page title
- 📱 Fully responsive and mobile-ready
- 🎨 Customizable themes (dark/light)
@@ -103,11 +103,11 @@ Lightweight social sharing component for web applications. Zero dependencies, fr
No matter which framework you use, integration always follows the same 3 steps:
-| Step | What to do | Where |
-| -------------------- | ------------------------------------------------------------ | ---------------------------------------------------------------------------------------------- |
-| **1️⃣ Load Library** | Add CSS + JS (CDN links) | Global layout file — `index.html` / `layout.tsx` / `_document.tsx` |
-| **2️⃣ Add Container** | Place `
` | The UI component where you want the button to appear |
-| **3️⃣ Initialize** | Call `new SocialShareButton({ container: "#share-button" })` | Inside that component, after the DOM is ready (e.g. `useEffect`, `mounted`, `ngAfterViewInit`) |
+| Step | What to do | Where |
+| -------------------- | ------------------------------------------------------------ | ------------------------------------------------------------------------------------ |
+| **1️⃣ Load Library** | Add CSS + JS (CDN links) | Global layout file — `index.html` / `layout.tsx` / `_document.tsx` / `functions.php` |
+| **2️⃣ Add Container** | Place `` | The UI component or WordPress `wp_footer` hook |
+| **3️⃣ Initialize** | Call `new SocialShareButton({ container: "#share-button" })` | Inside that component or WordPress `wp_footer` hook |
> 💡 Pick your framework below for the full copy-paste snippet:
@@ -437,12 +437,12 @@ new window.SocialShareButton({
-
+
```
@@ -486,6 +486,161 @@ export default function Header() {
+
+🔷 WordPress
+
+### Step 1: Enqueue in `functions.php`
+
+Add the following to your theme's `functions.php` to load the library directly from this repository via jsDelivr CDN:
+
+> **Note:** This package is not published to npm. Use the jsDelivr + GitHub CDN link below to load the correct distributable from the [AOSSIE-Org/SocialShareButton](https://github.com/AOSSIE-Org/SocialShareButton) repository.
+
+```php
+function enqueue_social_share_button() {
+ wp_enqueue_style(
+ 'social-share-button',
+ 'https://cdn.jsdelivr.net/gh/AOSSIE-Org/SocialShareButton@v1.0.3/src/social-share-button.css'
+ );
+ wp_enqueue_script(
+ 'social-share-button',
+ 'https://cdn.jsdelivr.net/gh/AOSSIE-Org/SocialShareButton@v1.0.3/src/social-share-button.js',
+ [],
+ null,
+ true // Load in footer
+ );
+}
+add_action('wp_enqueue_scripts', 'enqueue_social_share_button');
+```
+
+### Step 2: Initialize in `functions.php` (Footer Hook)
+
+Use the `wp_footer` hook with a **priority of 21** to inject the container and initialization script. The priority must be higher than the default (10) so WordPress prints the enqueued footer scripts _before_ this function runs:
+
+```php
+function init_social_share_button() { ?>
+
+
+
+
+
+💚 Nuxt.js
+
+### Step 1: Add CDN to your layout file (e.g., `app.vue` or `layouts/default.vue`)
+
+```html
+
+
+
+
+
+
+```
+
+### Step 2: Obtain the Nuxt wrapper component
+
+Currently, the wrapper is not available via CDN and must be added manually. Copy the `src/social-share-button-nuxt.vue` file from this repository into your Nuxt project's `components/` folder. Rename it to `SocialShareButton.vue` to match the usage below.
+
+### Step 3: Use the component in your page or component
+
+Open an **existing** page — typically `pages/index.vue`. Since the component is in the `components/` folder, Nuxt 3 will auto-import it.
+
+```vue
+
+
+
+
+
+```
+
+
+
+
+📄 Hugo / Jekyll
+
+### Step 1: Add CDN to your base layout
+
+Hugo: `layouts/_default/baseof.html`
+Jekyll: `_layouts/default.html`
+
+```html
+
+
+
+
+
+
+
+```
+
+### Step 2: Add the container and initialize
+
+Place this script where you want the button to appear (e.g. at the bottom of a post template).
+
+**Hugo (Post Template):**
+
+```html
+
+
+```
+
+**Jekyll (Post Template):**
+
+```html
+
+
+```
+
+
+
---
## Configuration
diff --git a/index.html b/index.html
index ce23d40..a765bc4 100644
--- a/index.html
+++ b/index.html
@@ -42,6 +42,7 @@
margin-bottom: 10px;
font-weight: 700;
}
+
.brand {
display: flex;
align-items: center;
@@ -256,6 +257,7 @@
}
+
+ Step 2: Obtain the Nuxt wrapper component. Currently, the wrapper is not
+ available via CDN and must be added manually. Copy the
+ src/social-share-button-nuxt.vue file from this repository into your Nuxt
+ project's components/ folder. Rename it to
+ SocialShareButton.vue to match the usage below.
+
+
+
+ Step 3: Register the component (automatically handled by Nuxt 3 when
+ placed in components/).
+
+
+
Step 4: Show usage in a pages/index.vue file
+
+
+
+
+ <!-- pages/index.vue --> <template> <SocialShareButton
+ url="https://your-website.com" title="Check this out!" description="An amazing website"
+ theme="dark" button-text="Share" /> </template> <script setup> //
+ Component is auto-imported from components/ in Nuxt 3 </script>
+
+
+
+
▲ Next.js Integration
Use the component inside a Next.js page
- import SocialShareButton from 'social-share-button'; export default function Home() {
+
+
+
+ import SocialShareButton from 'social-share-button'; export default function Home() {
return ( <SocialShareButton url="https://your-website.com" title="Check this out!"
- /> ); }
+ /> ); }
+
@@ -541,11 +653,17 @@
🟢 Vue / Vite Integration
Use inside a Vue component
- <template> <SocialShareButton url="https://your-website.com" title="Check this
+
+
+
+ <template> <SocialShareButton url="https://your-website.com" title="Check this
out!" /> </template> <script setup> import SocialShareButton from
- 'social-share-button' </script>
+ 'social-share-button' </script>
+