WordPress Plugins

Home > WordPress Plugins

Relevant Categories Widget

The “Relevant Product Categories for Search Results Widget” plugin is a WordPress tool that displays relevant product categories for given search results. Designed to enhance the user experience of your e-commerce site, this widget filters and presents product categories related to the user’s search query. This helps guide your visitors to the products they’re looking for, improving the shopping experience and helping boost your conversion rates.

Installation

  1. Download the plugin.
  2. Go to the WordPress admin dashboard.
  3. Navigate to “Plugins > Add New > Upload Plugin”.
  4. Upload the plugin zip file and click “Install Now”.
  5. After the plugin is installed, click “Activate Plugin”.

Usage

After installation and activation, follow these steps to use the plugin:

  1. Navigate to “Appearance > Widgets”.
  2. Drag the “Relevant Product Categories Widget” into the desired widget area.
  3. Set the title for the widget (optional).
  4. Save the widget.

Now, whenever a user performs a search on your site, the widget will display all relevant product categories based on the search results.

Shortcode

You can also use the plugin’s shortcode to display the widget anywhere in your posts, pages, or custom post types. Use the following shortcode:

[relevant_categories]

If you want to specify a title for the widget using the shortcode, use the following format:

[relevant_categories title="Your Title"]

Just replace “Your Title” with your desired title.

Styling

The widget uses the CSS class .relevant-categories-widget for styling. You can add custom styles in your theme’s CSS file to change the appearance of the widget. By default, the plugin comes with a relevant-categories-widget.css file that provides basic styling.


Remember, this plugin requires that you have an e-commerce system with product categories set up on your WordPress site. The plugin is designed to work with product post types and product_cat taxonomy. Please ensure that your e-commerce system is compatible.

Contact

If you have any questions or tips regarding this plugin, please contact us.