8

How to move the homepage forum search above the introduction text

Thought other users might like this little code snippet one of our devs knocked up for me.

It lets me position the homepage search box right at the top of the homepage, but I can still add custom text to the introduction box, which now appears just below.

Screenshot of the javascript widget is attached. The actual code is

(function($) {
var $solutionSuggestion = $('#solution_suggestion'),
$introductoryText = $('#introductory_text');

$solutionSuggestion.insertBefore($introductoryText);
}(jQuery));

2 comments

Please sign in to leave a comment.