New Landing How can we help? Themeforest Theme Support Neighborhood Personal Shopper Open on page load

Viewing 2 posts - 1 through 2 (of 2 total)
  • #128584
    nokes
    Member
    Post count: 27

    Hi, I want the personal shopper to slide open on page load

    i have added an id ‘swift-search-link-open’ to the link

    And placed this code in the template file. the alert is triggered but the personal shopper does not slide open

    Some help please:

    $(document).ready(function(){
    alert(“hi”);
    setTimeout(function() {
    $(“#swift-search-link-open”).trigger(‘click’);
    },10);
    });

    Thank you

    #128729
    laranz – SUPPORT
    Member
    Post count: 3186

    Hi,

    This is the code for the personal shopper on click function, you can tweak it on load.

    jQuery('.swift-search-link').on('click', function(e) {
    	e.preventDefault();
    	var superSearch = jQuery('#super-search');
    	
    	if (!superSearch.is(":visible")) {
    		superSearch.slideDown(400);
    	}
    });

    Let us know,

    Thanks,
    laranz.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register