Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter vasheck2

    (@vasheck2)

    Hi Chouby,

    Thanks very much for your help. Your suggested to add

    pll_load_front: 1 lead me to other related posts… and I eventually found a solution that worked for me. I save the code in as a php file, placed it in the plugin directory and activated it… The issue seems to be resolved for me. 🙂

    <?php
    /*
    Plugin name: GCE Load Polylang on Ajax requests
    */
    
    function gce_load_polylang_on_ajax() {
    	?>
    <script type="text/javascript">
    if (typeof jQuery != 'undefined') {
    	jQuery.ajaxSetup({
    		data: { pll_load_front: true }
    	});
    }
    </script>
    	<?php
    }
    
    add_action( 'wp_head', 'gce_load_polylang_on_ajax' );

    compliments of rosshanney
    https://gist.github.com/rosshanney/6202009

    thanks again for your help! it’s much appreciated

Viewing 1 replies (of 1 total)