Navigation

Tagged: 

  • Author
    Posts
  • #1326897

    redwhirl
    Participant

    Hi,

    I just moved my local theme config to the live site. Everything seems fine, except then the search form is not working, where locally it worked fine.

    I have checked the installed plugin, except SSL plugins and security plugin all other plugins are same as local. I use a child theme.

    The blog URL is https://bloginfos.com

    Could you help please?

    Thanks in advance

    Hubert

    Hubert

    #1326959

    Paul R
    Moderator

    Hi HUbert,

    To fix it, you can try adding this in Custom > Edit Global Javascript.

    
    jQuery(function($) {
    
      var $trigger  = $('.x-btn-navbar-search');
      var $formWrap = $('.x-searchform-overlay');
      var $input    = $formWrap.find('.search-query');
      var escKey    = 27;
    
      function clearSearch() {
        $formWrap.toggleClass('in');
        setTimeout(function() { $input.val(''); }, 350);
      }
    
      $trigger.on('touchstart click', function(e) {
        e.preventDefault();
        $formWrap.toggleClass('in');
        $input.focus();
      });
    
      $formWrap.on('touchstart click', function(e) {
        if ( ! $(e.target).hasClass('search-query') ) {
          clearSearch();
        }
      });
    
      $(document).keydown(function(e) {
        if ( e.which === escKey ) {
          if ( $formWrap.hasClass('in') ) {
            clearSearch();
          }
        }
      });
    
    });
    

    Hope that helps

    #1326977

    redwhirl
    Participant

    Hi Paul,

    Thanks for your answer. I just applied it, but nothing changed, tried on different browsers.

    I think it must be something different because the Bloom widget doesn’t show, the mobile menu doesn’t work too on a tablet or smartphone. I think everything is linked.

    Thanks again

    Hubert

    #1326994

    redwhirl
    Participant

    Hi Paul,

    I’ve searched further and removed 2 footer widgets. The bloom form appears again and the mobile menu works good. The only thing left over is the search not working.

    Hubert

    #1327000

    redwhirl
    Participant

    Sorry to bother you

    False joy. It works with Chrome, but with Opera or Firefox the Bloom widget doesn’t show at all.

    Back to the earlier point.

    #1327028

    redwhirl
    Participant
    This reply has been marked as private.
    #1327108

    Paul R
    Moderator

    Hi Hubert,

    I can see your using cache plugin.

    Please clear your plugin cache and browser cache then check again.

    Thanks

    #1327226

    redwhirl
    Participant

    Hi Paul,

    I just did what you asked and nothing changed. The Search section is still not working, and under Firefox and Opera search and Bloom widget don’t work

    Hubert

    #1327529

    Nabeel A
    Moderator

    Hi again,

    I tried to access your admin panel but MY IP address has been banned by your server:

    Your IP address has been banned from our server

    Can you please disable the security for a while so we can take a look at your current setup.

    Thanks!

    #1328399

    redwhirl
    Participant

    Hi Nabeel,

    I’m under heavy attacks, the better solution would be you give me your IP and I’ll white list it

    Hubert

    #1328422

    Lely
    Moderator

    Hi Hubert,

    We’re different staff on different places. It is a loop anyone can get this thread . Providing specific IP address is not recommended. I tried to access it even using VPN and I am not able to login too.

    #1328437

    redwhirl
    Participant

    Hi Lely,

    Could you at least give me the begining of your IP xxx.xxx

    #1328512

    Rad
    Moderator

    Hi there,

    Still the same, since we’re from different countries. And our IPs are dynamic which could change anytime. Please disable the restriction temporarily.

    Thanks!

    #1328546

    redwhirl
    Participant

    Hi Rad,

    I use iThemes Security and don’t have any specific restrictions set. I don’t know what to do more

    #1328710

    Paul R
    Moderator

    Hi,

    Please deactivate the plugin for a while so we can check.

    Thanks

Purchase for access

Buy a copy of X for access to our member center.

Buy