Helpful Village allows you to display an Upcoming Events box directly on your Village website. This is a great way to highlight upcoming activities and make it easier for visitors to discover what's happening in your community.
What Does It Look Like?
Here is an example of how the Upcoming Events box will appear on your website:
Part 1: How to Add the Events Box to Your Website
Step 1: Choose Where You Want the Box to Appear
- Visit your Village website and decide which page you would like to display the Upcoming Events box on.
- Navigate to your Editable Pages.
-
Find the page you selected and click Edit.
Step 2: Open the Source Code
Once you are editing the page, open the Source Code editor.
Paste the events box code into the location where you want the box to appear.
Part 2: How to Customize the Code
Step 1: Understanding the Code
Below is an example of the code used to create the Upcoming Events box.
Although the code may look complicated at first, most of it is already prepared. You only need to make a few small changes to customize it for your Village.
Line 1: Customize the Appearance
<div id="events_plugin_for_style" style="min-height: 100px; background-color: #f4f4f4; padding: 12px;">
This line controls the appearance and styling of your events box.
The main setting you may want to customize is the background color.
To change it:
- Visit an online color picker.
- Select the color you would like to use.
- Copy the corresponding HEX color code.
- Replace
#f4f4f4with your chosen color code.
Lines 2–3: Link to Your Events Page
<h3 style="padding: 0;margin: 0;"><a href="https://marin.helpfulvillage.com/events/"><span style="font-size: 14pt;">Upcoming events</span></a></h3> <hr />
These lines determine the link displayed at the top of your events box.
To customize it, replace the URL between the quotation marks with the address of your Village's Events page.
For example:
https://village.helpfulvillage.com/events/
This ensures that visitors who click Upcoming Events are directed to your Village's own events page.
Lines 4–5: Leave These Lines Unchanged
<div id="events_plugin_in_editable_page"> </div> </div>
These lines are part of the events box structure and should remain as they are.
Part 3: Additional Customization Options
You can further customize your Upcoming Events box to control which events are displayed.
For example, you can limit the box by:
- Number of days.
- Number of events.
- Display format.
- Neighborhood (for Hub and Spoke Villages).
- Event category.
To configure these options, follow the steps below.
Step 1: Find Your Editable Page Number
First, identify the page number of the Editable Page where you added the events box.
For example, in this tutorial, our page number is 10005.
Step 2: Open the Menu Manager
Go to Settings → Menu Manager and select the menu item associated with your Editable Page.
Step 3: Update the Page URL
Select Link to URL and enter the following URL structure, replacing NUMBER with your Editable Page number:
/editable_pages/NUMBER?
For example:
/editable_pages/10005?
Step 4: Add Your Customization Parameters
Once you have completed the previous steps, you can customize the events box by adding the relevant parameters after the question mark (?) in the URL.
Here are the available options:
1. Limit Events by Number of Days
Display events taking place within the next 30 days:
limit_by=30_days
2. Limit the Number of Events
Display a maximum of 10 events:
limit_by=10_events
3. Choose the Display Style
You can choose between three different display formats:
- Short display:
display_style=basic_1
- Long display:
display_style=basic_2
- Medium display:
display_style=basic_3
4. Filter Events by Neighborhood
For Hub and Spoke Villages, you can display events associated with a specific neighborhood by entering its acronym:
neighborhood=ACRONYM
Replace ACRONYM with the appropriate neighborhood acronym.
5. Filter Events by Category
You can also display events belonging to specific event categories.
event_category_ids_filter=NUMBER
To find the category number:
- Go to Admin → Settings → Config Event Categories.
- Find and edit the event category you want to display.
- Locate the category ID in the information displayed.
- Replace
NUMBERwith the corresponding category ID.
This allows you to display only events belonging to the selected category.
You're All Set!
With these options, you can customize your Upcoming Events box to match your Village website and highlight the activities most relevant to your community.
You can experiment with different display styles and filters to find the layout that works best for your Village.
Comments
0 comments
Please sign in to leave a comment.