You can use the Replace "Search Everywhere" text enhancement to customize the text of the search box on the Userbar.
Sections in this article:
- Considerations
- Set up the enhancement
- Configure the enhancement
- Turn the enhancement on
- Turn the enhancement off
- Use this enhancement
Considerations
- Unilingual: The replacement text only displays in a single language and is not responsive to a user's language selection.
- Appearance: With every page refresh or load, the default value will flicker for a split second before the custom text appears.
- Sitewide: The change will reflect on all the pages of your digital workplace.
Set up the enhancement
To set up the enhancement for the first time, follow the steps below. To request this enhancement to be set up in your digital workplace, contact our Igloo team.
Add enhancement code to the header
Warning
Adding code that contains errors can disrupt the functionality of your digital workplace. Use caution when adding code to this area.
Add the following code to the header of your digital workplace:
<!-- Replace Search Everywhere text enhancement begins -->
<script src="https://igpcdnstaticsa.blob.core.windows.net/enhancements/replace-search-everywhere-text/replace-search-text.js" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script>
replaceSearchEverywhereText(" **Custom Text** ");
</script>
<!-- Replace Search Everywhere text enhancement ends -->
Configure the enhancement
Once the code above has been added, you can modify the code to display the updated text for the search box. Modify the following code by replacing **Custom Text** in replaceSearchEverywhereText(" **Custom Text** "); with the text to be displayed in the search box.
Turn the enhancement on
Once the code has been placed, the enhancement is ready to be used. If you have already turned the enhancement off following the steps in the Turn the enhancement off section below, you can remove <!-- before and --> after the middle lines, and save the changes to the header.
Turn the enhancement off
To turn the enhancement off, you can remove the code entirely or add <!-- before and --> after the middle lines, as shown below, and save the changes to the header.
<!-- Replace Search Everywhere text enhancement begins -->
<script src="https://igpcdnstaticsa.blob.core.windows.net/enhancements/replace-search-everywhere-text/replace-search-text.js" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script>
replaceSearchEverywhereText(" **Custom Text** ");
</script>
<!-- Replace Search Everywhere text enhancement ends -->
Changes to:
<!-- Replace Search Everywhere text enhancement begins -->
<!-- <script src="https://igpcdnstaticsa.blob.core.windows.net/enhancements/replace-search-everywhere-text/replace-search-text.js" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script>
replaceSearchEverywhereText(" **Custom Text** ");
</script> -->
<!-- Replace Search Everywhere text enhancement ends -->
Use this enhancement
When members view the search box, they will see the customized text.