Support Forums

The forums are closed and will be removed when we launch our new site.

Looking for support? You can access the support system via your account.

Stephane

Forum Replies Created

Viewing 10 posts - 1 through 10 (of 13 total)
  • Stephane in reply to:
    Format number in range slider (with number_format() by example)
    #18076

    Hi Ross,

    thank you for your answer. Yes, I think we have no choice and need to hack plugin source here, but this is not an issue for me here.

    However I’ve tried implementing lang=”nb” in both class-search-filter-generate-input.php and class-search-filter-display-shortcode.php, as well is my main <html> and nothing changed 🙁

    Help for making this work greatly appreciated !

    Stephane in reply to:
    Invisible Ajax results
    #16521

    Ok, managed it to work !

    For those who use Salient theme : add this to search-filter/results.php :

    <script type="text/javascript">
    
    	<![CDATA[
    	
    		$(".searchandfilter").on("sf:ajaxstart",function(){
    			console.log("ajax start");
    			$('#loader').show();
    		});
    		
    		$(".searchandfilter").on("sf:ajaxfinish",function(){
    			console.log("ajax complete");
    			$('#loader').hide();
    						
    			jQuery.getScript("PATH_TO_YOUR_THEME_DIRECTORY/salient/js/init.js", function(data, textStatus, jqxhr) {
    			   //console.log(data); //data returned
    			   //console.log(textStatus); //success
    			   //console.log(jqxhr.status); //200
    			   //console.log('script.js loaded.');
    			});
    				
    		});
    		
    	]]>
    
    </script>
    Stephane in reply to:
    Invisible Ajax results
    #16476

    🙁

    Stephane in reply to:
    Invisible Ajax results
    #16471
    This reply has been marked as private.
    Stephane in reply to:
    Ordering behaviour : out of control !
    #16422

    ARGGHHH !!

    This is official : I’m an idiot : I was entering the wrong meta key…

    Stephane in reply to:
    Invisible Ajax results
    #16420

    Hey Ross,

    theme developers were not very helpful :/

    I found in my parent theme functins.php the following :

    #-----------------------------------------------------------------#
    # Register/Enqueue JS
    #-----------------------------------------------------------------#
    
    $options = get_option('salient'); 
    
    function nectar_register_js() {	
    	
    	global $options;
    	
    	if (!is_admin()) { 
    		
    		// Register 
    		wp_register_script('modernizer', get_template_directory_uri() . '/js/modernizr.js', 'jquery', '2.6.2');
    		wp_register_script('respond', get_template_directory_uri() . '/js/respond.js', 'jquery', '1.1', TRUE);
    		wp_register_script('superfish', get_template_directory_uri() . '/js/superfish.js', 'jquery', '1.4.8', TRUE);
    		wp_register_script('respond', get_template_directory_uri() . '/js/respond.js', 'jquery', '1.1',TRUE);
    		wp_register_script('orbit', get_template_directory_uri() . '/js/orbit.js', 'jquery', '1.4', TRUE);
    		wp_register_script('nicescroll', get_template_directory_uri() . '/js/nicescroll.js', 'jquery', '3.5.4' ,TRUE);
    		wp_register_script('sticky', get_template_directory_uri() . '/js/sticky.js', 'jquery', '1.0', TRUE);
    		wp_register_script('nectar_prettyPhoto', get_template_directory_uri() . '/js/prettyPhoto.js', 'jquery', '5.5.4', TRUE);
    		wp_register_script('nectar_parallax', get_template_directory_uri() . '/js/parallax.js', 'jquery', '1.0', TRUE);
    		wp_register_script('isotope', get_template_directory_uri() . '/js/isotope.min.js', 'jquery', '2.0' ,TRUE);
    		wp_register_script('nectarSlider', get_template_directory_uri() . '/js/nectar-slider.js', 'jquery', '5.5.4', TRUE);
    		wp_register_script('iosSlider', get_template_directory_uri() . '/js/jquery.iosslider.min.js', 'jquery', '5.5.4', TRUE);
    		wp_register_script('ajaxify', get_template_directory_uri() . '/js/ajaxify.js', 'jquery', '5.5.4', TRUE);
    
    		if ( floatval(get_bloginfo('version')) < "3.6" ) {
    			wp_register_script('jplayer', get_template_directory_uri() . '/js/jplayer.min.js', 'jquery', '2.1', TRUE);
    		}
    		wp_register_script('nectarFrontend', get_template_directory_uri() . '/js/init.js', array('jquery', 'superfish'), '5.5.4', TRUE);
    		
    		// Dequeue
    		wp_dequeue_script( 'prettyPhoto' );
    		
    		
    
    		// Enqueue
    		wp_enqueue_script('jquery');
    		wp_enqueue_script('modernizer');
    		wp_enqueue_script('superfish'); 
    		wp_enqueue_script('respond');
    		if(!empty($options['smooth-scrolling']) && $options['smooth-scrolling'] == '1') wp_enqueue_script('nicescroll');
    		wp_enqueue_script('sticky'); 
    		wp_enqueue_script('nectar_prettyPhoto');
    		wp_enqueue_script('isotope');
    		if ( floatval(get_bloginfo('version')) < "3.6" ) {
    			wp_enqueue_script('jplayer');
    		}
    		
    		wp_enqueue_script('nectarFrontend');
    		
    		$transition_method = (!empty($options['transition-method'])) ? $options['transition-method'] : 'ajax';
    		if(!empty($options['ajax-page-loading']) && $options['ajax-page-loading'] == '1' && $transition_method == 'ajax') {
    			wp_enqueue_script('nectarSlider');
    			wp_enqueue_script('ajaxify');
    		}
    
    		
    	}
    }
    
    add_action('wp_enqueue_scripts', 'nectar_register_js');
    
    function nectar_page_specific_js() {
    	
    	global $post;
    	global $options;
    	
    	if(!is_object($post)) $post = (object) array('post_content'=>' ', 'ID' => ' ');
        $template_name = get_post_meta( $post->ID, '_wp_page_template', true );
    	
    	//home
    	if ( is_page_template('template-home-1.php') || $template_name == 'salient/template-home-1.php' ||
    	     is_page_template('template-home-2.php') || $template_name == 'salient/template-home-2.php' ||
    	     is_page_template('template-home-3.php') || $template_name == 'salient/template-home-3.php' ||
    	     is_page_template('template-home-4.php') || $template_name == 'salient/template-home-4.php') {
    		wp_enqueue_script('orbit');
    	}
    
    	////infinite scroll
    	$portfolio_extra_content = get_post_meta($post->ID, '_nectar_portfolio_extra_content', true);
    	$posttype = get_post_type($post);
    
    	if(stripos( $post->post_content, '[nectar_blog') !== FALSE || stripos( $portfolio_extra_content, '[nectar_blog') !== FALSE
    	|| stripos( $post->post_content, 'pagination_type="infinite_scroll"') !== FALSE || stripos( $portfolio_extra_content, 'pagination_type="infinite_scroll"') !== FALSE
    	|| (!empty($options['blog_pagination_type']) && $options['blog_pagination_type'] == 'infinite_scroll')
    	|| (!empty($options['portfolio_pagination_type']) && $options['portfolio_pagination_type'] == 'infinite_scroll')
    	|| (((is_archive()) || (is_author()) || (is_category()) || (is_home()) || (is_tag())) && ( $posttype == 'post') && (!is_singular())) ) {
    		
    		wp_register_script('infinite_scroll', get_template_directory_uri() . '/js/infinitescroll.js', array('jquery'), '1.0', TRUE);
    		wp_enqueue_script('infinite_scroll');
    		
    		if ( floatval(get_bloginfo('version')) >= "3.6" ) {
    			wp_enqueue_script('wp-mediaelement');
    			wp_enqueue_style('wp-mediaelement');
    		} 
    		
    		if (class_exists('WPBakeryVisualComposerAbstract') && defined( 'SALIENT_VC_ACTIVE')) {
    			wp_register_script('progressCircle', vc_asset_url('lib/progress-circle/ProgressCircle.js'));
           		wp_register_script('vc_pie', vc_asset_url('lib/vc_chart/jquery.vc_chart.js'), array('jquery', 'progressCircle'));
    			wp_enqueue_script('vc_pie');
    		}
    			
    	}
    	
    	
    	//nectarSlider mediaElement 
    	if(stripos( $post->post_content, '[nectar_slider') !== FALSE || stripos( $portfolio_extra_content, '[nectar_slider') !== FALSE
    	|| stripos($post->post_content, '[vc_gallery type="nectarslider_style"') !== FALSE || stripos( $portfolio_extra_content, '[vc_gallery type="nectarslider_style"') !== FALSE) {
    		
    
    		wp_enqueue_script('nectarSlider');	
    		
    	}
    	
    	//comments
    	if ( is_singular() && comments_open() && get_option('thread_comments') )
    	wp_enqueue_script('comment-reply');
    	
    }
    
    add_action('wp_enqueue_scripts', 'nectar_page_specific_js'); 
    
    //Remove wooCommerce prettyPhoto
    global $woocommerce;
    if($woocommerce) {
    	
    	function removeWooPrettyPhoto(){
    		wp_dequeue_style( 'woocommerce_prettyPhoto_css' );
    	    wp_dequeue_script( 'prettyPhoto-init' );
    		wp_dequeue_script( 'prettyPhoto' );
    	}
    	
    	add_action( 'wp_enqueue_scripts', 'removeWooPrettyPhoto', 99 );
    
    }

    Is there anything to do with this ?

    Thanks !!

    Stephane in reply to:
    Building a search using Advanced Custom Fields plugin
    #16130

    +1 !!!

    Stephane in reply to:
    Auto sync post meta?
    #16129

    I have same problem, it would definitely be a must have !

    Thx

    Stephane in reply to:
    Invisible Ajax results
    #15623

    Thank you Ross.

    Understood, now working with the help of the theme devs.

    Thx !

    Stephane in reply to:
    Invisible Ajax results
    #15382

    Also how to reinitialise the JS ? Where can I find the JS I need to re-load ?

    thx !

Viewing 10 posts - 1 through 10 (of 13 total)