Adding the shortcode to your site

How to embed the Voice Search widget on any page of your site using the shortcode.

The shortcode

Voice Search is added to any page or widget area using a WordPress shortcode:

[mlsg_voice]

Paste this shortcode into any WordPress page, post, or widget area where you want the Voice Search button to appear.

Shortcode parameters

  • text — The label shown on the button. Default: "Voice Search". Set to an empty string for icon-only.
  • width — "small" (default) or "large". Controls the button width class.
  • class — Additional CSS classes to apply to the button. Default: "btn btn-primary mlsg-btn".

Example with parameters

[mlsg_voice text="Find your home" width="large"]

Adding to a menu

Voice Search can also be added to a WordPress navigation menu. A menu item option is available under MLS Genie™ → Voice Search in the WordPress admin.

Secret Link