• Resolved Rick Hellewell

    (@rhellewellgmailcom)


    Nice plugin. Minor detail: I have the ‘close search’ enabled in the Settings screen. But only a right-click closes the search box; a left-click doesn’t close it.

    Seems a bit backwards to me….left-click should close the search box.

    Thanks…Rick..

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Vinod Dalvi

    (@vinod-dalvi)

    I hope you are well today and thanks for posting here.

    I have tested it on my test site using default WordPress theme and latest version of Add Search To Menu plugin but the left click is closing it for me and right click.

    Could you please share me your site URL where it’s happening so that i can troubleshoot it?

    Best regards,

    Thread Starter Rick Hellewell

    (@rhellewellgmailcom)

    Thanks. The search box will close if I vlick anywhere other than the ‘x’ (close) icon. Or on a right-click.

    URL is here https://www.cellarweb.com/plsbca/ .

    Plugin Author Vinod Dalvi

    (@vinod-dalvi)

    It seems this is happening on your shared site because the theme code that you are using is conflicting with plugin code. Yo can test the plugin with any default WordPress theme to see it is working fine.

    You can try resolving the issue using this small custom plugin https://drive.google.com/file/d/1KqnuvWWrXfTqYETkMR62XipRDWR5NkNJ/view?usp=sharing on your site that contains following code.

    
    function add_custom_scripts(){ ?>
    	<script type="text/javascript">
    		jQuery(document).ready(function($){
    				$('.search-close').click( function() {
    					if ( $( '.astm-search-menu' ).hasClass( 'open' ) ) {
    						$( '.astm-search-menu form' ).animate(
    							{ width: '0' },
    							400,
    							function() {
    								$( '.astm-search-menu' ).removeClass( 'active-search' );
    								$( '.astm-search-menu' ).removeClass( 'open' );
    							}
    						);
    					} else if ( $( '.astm-search-menu' ).hasClass( 'dropdown' ) ) {
    						$( '.astm-search-menu form' ).fadeOut();
    					}
    				});
    		});
    	</script>
    <?php }
    add_action('wp_footer', 'add_custom_scripts', 99);
    
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Closing the Search Box’ is closed to new replies.