WP Manifestindependent plugin directory
manifest / integrations / umw-search

UMW Custom Search

UMW Search Engine Implementation

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/umwedu/umw-search/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

UMW Search Engine Implementation

This plugin implements the custom search used throughout the UMW website.

Description

This plugin replaces the default WordPress search engine with a Google Custom Search Engine specifically for the use of the University of Mary Washington.

This plugin now hooks into the UMW Online Tools plugin to output the search engine as part of the global toolbar.

Installation

  1. Upload the umw-search folder to wp-content/plugins
  2. Create a blank PHP file at wp-content/plugins/umw-search/cse-id.php and add your CSE ID (instructions in the FAQ section)
  3. Populate the $umw_cse_Id variable with your CSE ID
  4. Activate the plugin

Frequently Asked Questions

How do I specify my CSE ID?

Create a blank file at wp-content/plugins/umw-search/cse-id.php and paste in the following code:

        <?php
        if ( ! defined( 'ABSPATH' ) ) {
            die( 'You should not access this file directly.' );
        }

        global $umw_cse_id;
        $umw_cse_id = '';

Why don't things like auto-complete, etc. work?

For accessibility reasons, this plugin was originally designed to mimic the HTML output of Google's custom search engine. Google uses a single line of JavaScript code to render the normal search box, which would leave the search engine inoperable for any that don't use JS. Since this plugin doesn't use the native Google code, some features of the CSE are not available.

Changelog

0.3

  • Add placeholder class to stop the plugin from throwing fatal errors if the Online Tools plugin can’t be located

0.2

  • Integrate the plugin into the Online Tools plugin

0.1

  • Initial version