Search Module

Writer is a clean and professional theme for blog or personal website.
GK User
Mon Oct 06, 2014 7:48 pm
How is the search module supposed to work?

Even on your demo, it only seems to work when the width of the page is large enough to expand the "Start Typing..." box.
User avatar
Fresh Boarder

GK User
Mon Oct 06, 2014 8:13 pm
If you click on the left of the magnifying glass it will work, but to be honest, it isn't the best idea. I'll report that to our devteam. Perhaps there is a bug in our code.
User avatar
Moderator

GK User
Tue Oct 07, 2014 6:41 am
There is already a fix ready to release, but you can implement it easy.
Just add:
Code: Select all
      jQuery('#gk-search').click(function() {
         searchbox.trigger('focus');
      });

to templates/gk_writer/js/gk.scripts.js to a block of code that starts at line number 80, so the bloc looks this way:
Code: Select all
   // search
   var searchbox = jQuery('#gk-search .inputbox');
   if(searchbox.length) {
      jQuery('#gk-search').click(function() {
         searchbox.trigger('focus');
      });
      
      searchbox.focus(function() {
         var input = jQuery('#gk-search');
         input.addClass('search-active');
      });
      
      searchbox.blur(function() {
         var input = jQuery('#gk-search');
         input.removeClass('search-active');
      });
   }
User avatar
Moderator


cron