Have you noticed that itโs starting to look a lot like Christmas? ๐
Itโs that time of the year when the weather starts to cool down, the trees bare their branches, and the sound of Jingle Bells fills every store. These are all signs that the biggest gift-giving holiday of the year is about to begin.
And you know what that means… itโs time to start writing your Christmas wish list! ๐
In this post, weโll show you how to create an online Christmas wish list that you can share with your friends and family using Gravity Forms and GravityView!
So what are you waiting for? Grab a cup of hot chocolate (Floatyโs got the perfect recipe) and letโs dive in!
Sneak Peek
Hereโs a sneak peek at what weโre going to build in this tutorial:
And if you click on the โAdd item to listโ button, a popup opens up with a form where you can add new gifts to your list!
Pretty cool, right?
What Is a Christmas Wish List?
A Christmas โwish listโ or โwishlistโ is a list of items that a person hopes to receive as gifts for Christmas! The goal of a wish list is to open up a clear channel of communication between the gift receiver and gift giver.
This ensures that the gift receiver gets exactly what they want, and reduces stress for the gift giver so they donโt have to guess at what to buy. In some cultures, people exchange wish lists prior to Christmas.
People use wish lists and gift registries for other occasions too, including weddings, baby showers, housewarmings, and charity drives.
How Do I Make a Wishlist on WordPress?
There are different ways to create wishlists on WordPress but one of the best ways is by using Gravity Forms and GravityView. In this tutorial, weโll show you how to save new gifts using Gravity Forms and display them in a list on the front end using GravityView.
Creating the Gift Form
Okay, letโs start building our online Christmas wish list! The first step is to create a form that allows us to add new items to our list.
To create a new Gravity Form, weโll hover over Forms and click on New Form. Next, weโll give our form a name and click Create New Form.
Now we can start building our form using Gravity Formsโ handy drag and drop interface! Weโll keep things simple by adding the following 5 fields:
- What would you like? (Single Line Text field)
- Website link (Website field)
- Image (File Upload field)
- Note (Single Line Text field)
- Price (Single Line Text field)
Hereโs what our form looks like if we preview it:
The next step is to embed our form inside a popup and create a trigger so that it appears when we click on the โAdd item to listโ button. To do this, weโll need to install the free โPopup Makerโ plugin.
Creating the Form Popup
To install Popup Maker, weโll hover over Plugins and click Add New. Next, weโll search for โPopup Makerโ and click โInstallโ. As you can see, with a five-star rating and over 700,000+ installations, itโs a popular plugin!
After installing and activating Popup Maker, weโll create a new popup by hovering over Popup Maker in the left-hand menu and clicking Create Popup. Weโll give our new popup a name and then weโll add our form to the content area using the Gravity Forms embed shortcode.
Now we need to add a trigger to our popup so that it opens on click. To do this, weโll scroll down to the Popup Settings, select Triggers on the left, and click Add New Trigger.
Now under where it says โWhat kind of trigger do you want?โ weโll select โClick Openโ and click Add. Finally, weโll add a CSS selector class. Weโll need to add this class to our button to ensure our popup opens when we click on it.
The next step is to create a new View that allows us to display gifts on the front end.
Building the List View
๐ GravityView is an add-on for Gravity Forms that allows you to build powerful web apps with your form data. New to GravityView? See what GravityView can do for you.
To create a new View, weโll hover over Views and click New View. Weโll give our View a name and select our new Gravity Form as the Data Source. Finally, weโll choose List as the View Type.
Now we can configure the Multiple Entries Layout using GravityViewโs drag and drop builder! Weโll start by removing all the widgets (as we wonโt need these). Next, weโll add the โWhat would you like?โ field to the Listing Title section.
Now weโll add the Image field to the Image block, and the remaining fields to the Other Fields section, like this:
Finally, weโll add a link to the Edit Entry page in the right footer area. Clicking on this link will allow us to edit or delete items on our list.
Okay, weโre finished configuring our View! Now all thatโs left to do is put it all together on a single page.
Putting It All Together
To create a new page weโll hover over Pages and click Add New. First, weโll add a picture of Santa Clause at the top along with some information about our list. Next, weโll add a button by clicking on the โ+โ icon and selecting the Gutenberg Button module.
This will be our โAdd item to listโ button that opens our form popup when clicked. To ensure this works, weโll need to add the CSS class we created in a previous step.
Finally, weโll add our View by copying and pasting the GravityView embed shortcode into a Gutenberg Shortcode module.
Thatโs it! When youโre done, save your page by clicking โPublishโ.
Adding Gifts to Your Wish List
When youโre browsing the internet and spot something that you want to add to your Christmas wish list (like this awesome WordPress merch), all you need to do is follow the steps below.
Head over to your online Christmas list page and click the โAdd new item to listโ button to bring up the list form. Fill in the title of the product, the website URL, and the price. You can also add an image and a note if you want to. Now click Submit.
As you can see, the item is now added to your wish list and visible on the front end!
Now that your Christmas wish list registry is up and running, you can start sharing it with your family and friends.
Editing and Deleting Gift Entries
To edit or remove an item on your wish list, all you need to do is click on the โEdit Entryโ link at the bottom right of the entry.
This will take you through to the Edit Entry page where you can make changes to the entry or remove it from your list.
Yep, itโs as easy as that!
Sharing Your Christmas Wish List With Family and Friends
To share your Christmas wish list with your friends and family, all you need to do is send them the URL of the page where your View is embedded.
If youโd like to prevent anyone else from adding items to your list, you can move the wish list form to a separate page or simply update your form settings to require a user login.
Start Assembling Your Christmas Wish List Today!
As the gift-giving holiday approaches, itโs time to start thinking about your Christmas wish list. Keeping a wish list is the perfect way to ensure that your friends and family know exactly what to buy you.
In this post, we showed you how to build your own online Christmas wish list using Gravity Forms and GravityView. Now, what are you waiting for? Create a Christmas wish list and start filling it with all those precious Christmas items! ๐
Join Our Newsletter!๐ง๐
โ Helpful Gravity Forms content straight to your inbox
โ Be the first to hear about new updates and releases