CODE SNIPPET FOR VENUE PAGES
=============================
Add this link/button to your venue page template to open the celebration flyer creation modal:
BASIC USAGE (Auto-detects venue from current page):
---------------------------------------------------
Create Celebration Flyer
This will automatically detect the current venue and show a dropdown with all events from that venue.
ALTERNATIVE STYLING:
--------------------
You can use any HTML element with the class "coco-flyer-trigger":
Or with custom styling:
Create Celebration Flyer
MANUAL VENUE ID (if needed):
-----------------------------
If you need to specify a venue ID manually:
Create Celebration Flyer
(Replace 67890 with the actual venue ID)
HOW IT WORKS:
-------------
- Clicking the link opens a modal overlay
- The form automatically loads with events from the current venue
- Users can select any event from that venue
- The modal can be closed by clicking the X button or clicking outside
INSTALLATION:
-------------
1. Open your venue page template file (usually in your theme)
2. Find where you want the button to appear
3. Add the code snippet above
4. Save and refresh
The scripts are automatically loaded on venue pages, so no additional setup is needed!