Skip to Content

mobileSearchPlaceholder()

Change the search input placeholder from “What are you looking for?” to just “Search” for narrow viewports (mobile).

JavaScript February 7, 2021

Usage

This function runs automatically, so it is not called manually. Is this incorrect?

Additional Notes

This function triggers the change at 410px wide viewport.

Source File

This function was not found in /assets/js/modules/search.js. Please report this error.

No Hooks

This function does not have any filters or actions available. Request one?

Override

To override or disable this JavaScript function, simply redeclare it with the exact same function name.

JavaScript
function mobileSearchPlaceholder(){
    //Write your own code here, leave it blank, or return false.
}