Help Contents
Customizing search values in your brand requires adding custom JavaScript. To do this:
- Click on "Add CSS/Javascript" in the Brand Designer, specify the file name, select the "JavaScript" radio button, and click "Apply" to create a new file.
- Reopen the Brand Designer and your new file will appear at the bottom of left panel.
- Click on that file, and add your custom JavaScript.
To change the placeholder text in Confluence's Quick Search field:
Add the following to your script file, and then click "Apply" to save the JavaScript in your brand and see the results:
Example custom-javascript.js
// Change the placeholder text in Confluence's quick search field AJS.toInit( function ($) { $("#quick-search-query").attr("placeholder", "Search Me"); });
To change the button text on the Live Search macro:
Add the following to your script file, and then click "Apply" to save the JavaScript in your brand and see the results:
Example custom-javascript.js
// Change the button text on the live search macro AJS.toInit( function ($) { $(".plugin_livesearch_buttonbox input").val("Search Me"); });