We use the Documentation theme quite a bit and a search control is automatically included on the upper-right of every page. Inside the control, the words "Search Confluence" appears before you actually type any search text in the field. We'd like to change what appears in that control but I can't find what "properties" file contains the text that gets displayed. Any ideas? Thanks.
Hi Roy,
You could put the following on the Confluence Admin >> Custom HTML >> At end of the HEAD
<script type="text/javascript"> AJS.toInit(function() { AJS.$('#quick-search-query').attr('placeholder','Your String Here'); }); </script>
Please change Your String Here to relevant text.
Hope it helps
Thanks both Uday and Rian, this worked (mostly). It solves my basic problem. Unfortuantely, it leaves a little artifact on a space that uses the Adaptavist Theme Builder but that is a small matter. It works prefectly on all the main spaces in our site and is a good technique to recommend to others who are trying to brand their sites. Appreciate the help!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
AJS.toInit(
function
() {
AJS.$("#header .quick-search-query").val("your search Text Here");
});
The above code will work. you should add the line betwen toInit() method.
Place the aboce code in custom HTML-->At the end of the Head.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
AJS.$("#header .quick-search-query").val("your search Text Here");
You can place this in 'At end of the HEAD' section.
Hope this will help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Tried it. All that happenned was the "AJS.$("#header.quick-search-query").val("My Search Test");" showed up as a text string above the menu bar. I'm sure I'm doing something wrong, but still looking for a solution.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.