karlamulder

Forum Replies Created

Viewing 7 posts - 31 through 37 (of 37 total)
  • Author
    Posts
  • in reply to: seems not to work #61258

    karlamulder
    Buyer
    Post count: 39

    Yes, you are right; I had commented out those add-action and function calls..

    But, with your complete code the GD pages do not load the javascripts and do not show the map..

    Just one finishing touch on the code?

    in reply to: seems not to work #61147

    karlamulder
    Buyer
    Post count: 39

    Helas, did not work; I tried:

    
    
     if (!is_page('geodir_is_geodir_page()')){
     {wp_dequeue_script( 'geodirectory-choose-ajax'); 
       wp_dequeue_script('geodir-jRating-js'); 
       wp_dequeue_script('google-geometa'); 
       wp_dequeue_script('geodir-on-document-load'); 
       wp_dequeue_script('geodirectory-script'); 
        wp_dequeue_script('geodirectory-jquery-flexslider-js'); 
    	wp_dequeue_script('geodirectory-lightbox-jquery'); 
    	wp_dequeue_script('geodirectory-jquery-simplemodal'); 
    	wp_dequeue_script('geodirectory-jquery-ui-timepicker-js');    
       }
    }

    and also:

    
    
     if (!geodir_is_geodir_page()){
     {wp_dequeue_script( 'geodirectory-choose-ajax'); 
       wp_dequeue_script('geodir-jRating-js'); 
       wp_dequeue_script('google-geometa'); 
       wp_dequeue_script('geodir-on-document-load'); 
       wp_dequeue_script('geodirectory-script'); 
        wp_dequeue_script('geodirectory-jquery-flexslider-js'); 
    	wp_dequeue_script('geodirectory-lightbox-jquery'); 
    	wp_dequeue_script('geodirectory-jquery-simplemodal'); 
    	wp_dequeue_script('geodirectory-jquery-ui-timepicker-js');    
       }
    }

    But the GD scripts are still loaded on all pages. Do you have a suggestion?

    in reply to: seems not to work #61037

    karlamulder
    Buyer
    Post count: 39

    Before I found GD Booster, I was trying to accomplish that the geodirectory scripts would only load at certain GD pages.

    
    
    add_action( 'wp_print_scripts', 'wpdocs_dequeue_script', 100 );
    function wpdocs_dequeue_script() {
     if ( !is_page(array('kaart', 'add-listing', 'places', 'listing-preview','gd-info', 'location') ) ) 
     {wp_dequeue_script( 'geodirectory-choose-ajax'); 
       wp_dequeue_script('geodirectory-goMap-script'); 
       wp_dequeue_script('geodir-jRating-js'); 
       wp_dequeue_script('google-geometa'); 
       wp_dequeue_script('geodir-on-document-load'); 
         wp_dequeue_script('geodirectory-script'); 
    	   wp_dequeue_script('geodirectory-jquery-flexslider-js'); 
    	     wp_dequeue_script('geodirectory-lightbox-jquery'); 
    		   wp_dequeue_script('geodirectory-jquery-simplemodal'); 
    		     wp_dequeue_script('geodirectory-jquery-ui-timepicker-js');   
    }
    }

    This works, but it is useless this way as the code is also not loading at mysite/places/…
    And on this very important page nothing happens when one clicks on the tabs like profile, map etc.

    Do you have a suggestion how to complete the array in:

    if ( !is_page(array('kaart', 'add-listing', 'places', 'listing-preview','gd-info', 'location') )

    , so it really works on all the important GD pages?

    in reply to: seems not to work #61016

    karlamulder
    Buyer
    Post count: 39
    This reply has been marked as private.
    in reply to: seems not to work #61009

    karlamulder
    Buyer
    Post count: 39

    Strange, but it really works now on Transitiontowns.nl. Very happy about that!

    But not on the other one. I tried the same trick: enable and then disable. Checking in another browser on another page and after clearing the browser.

    How can I update the plugin? I just bought it today; this is the version I bought.

    Thanks for helping me with the first site.

    in reply to: seems not to work #61002

    karlamulder
    Buyer
    Post count: 39

    I am not complaining about maps, but about GD Booster. Also this page shows all the scripts and css, when you look at Page source.

    in reply to: seems not to work #60974

    karlamulder
    Buyer
    Post count: 39
    This reply has been marked as private.
Viewing 7 posts - 31 through 37 (of 37 total)