Adding a search widget to your website couldn't be easier with Showcase IDX! Let's walk through it together.
Where to find the shortcode
As shown in the above image, all Shortcodes can be found under Settings > Shortcodes in your admin dashboard.
Once you reach the page, you will see a dropdown with the available widgets. The first of which is going to be the search widget! You can see a breakdown of all the widgets and their customization options here.
The search widget offers many options to customize it to your liking without any additional coding. As you select different options, the shortcode will update for you as well as the preview so you can see in real-time how that shortcode will end up looking on your homepage. Let's see a quick example of how an updated shortcode might look:
Adding the shortcode to your website
Click the blue copy button once you have the widget the way you like it and head over to your WordPress dashboard to add it to your homepage.
Note: Our widgets are responsive to their container size. If your container is smaller, the widget will adjust itself to fit inside the container.
Depending on your website's theme and/or site builder and how you decide to layout your website, the next steps may look a bit different for you, but it should be pretty easy to navigate.
Example using the Divi Builder
In this example, we are using the DIVI theme and site builder. You can either use the visual builder to edit the webpage live while you work on it, or use the default editor.
If using the visual builder, you'd see something like this, and then just pick the type of row you'd like to use. We're going to be simple and use a full row, which is the first option.
When choosing a module for your widget, you can use either a TEXT module or a CODE/SHORTCODE module. Themes/Builders usually render our shortcodes best in a text module, so try that first! If there is an issue with the shortcode displaying correctly, try the code module.
For this example, we'll use TEXT. You should already have the shortcode copied to your clipboard so you can just paste it right inside the module pop-up, like so:
Wordpress will automatically render this in the visual display, so just save the setting and your widget will show up immediately! Neat, huh?
The process works very similar when using the default editor as well if you decide you'd rather build your page that way. Simply add your row type, pick your module, and add the shortcode. Update the page, if it's already published, and when you preview, you should see your widget!
Check your theme for a text or shortcode option which would allow you to embed the shortcode on the page. If you're using the default Gutenberg editor, you can just add the shortcode to a paragraph or edit it as HTML. This will vary case by case, and if you're not sure, let us know! We're happy to help you navigate your dashboard if you don't have a developer.
It's really that simple! You can put a search widget in a sidebar or on any other page you like. Giving your leads more ways to search will only increase their time spent on your website, and provide them with a positive user experience.