Vikas
Forum Replies Created
-
AuthorPosts
-
Hi,
I found that , theme google map script was conflicting with plugin google map script so i wrote a code in ur child theme’s functions.php to dequeue your theme goolge map scripts only on Geodirectory related pages.
Here is the code which i used to do this.function geodir_dequeue_script() { $is_geodir_page = geodir_is_geodir_page(); if($is_geodir_page) { wp_dequeue_script( 'gmap' ); wp_dequeue_script( 'jquery.ui.map'); } } add_action( 'wp_print_scripts', 'geodir_dequeue_script', 100 );
Please let me know if it is working fine now.
Thanks
Hi,
I have fixed this issue, Plz find attached zip , extract it and upload
admin_hooks_actions.php in
wp-contentpluginsgeodirectorygeodirectory-admin using ftp.Let me know ur comments.
Thanks
I am here,
Looking into the issue.Thanks for ur patience.
Hi,
Here is better solution and will be included in next release, so u will not loose map custom style after upgrade.Plz download attached zip, extract it and upload map.js in
your wordpress >wp-contentpluginsgeodirectorygeodirectory-functionsmap-functionsjs
after uploading js in correct folder, plz put this snippet in ur theme’s functions.php file
add_action('wp_footer' , 'geodir_set_custom_map_style'); function geodir_set_custom_map_style() { ?> <script> var geodir_custom_map_style =[ // Google Map Styles Starts Here { "stylers": [ { "invert_lightness": true }, { "saturation": -100 } ] }, // Google Map Styles End Here { featureType: "poi.business", elementType: "labels", stylers: [ { visibility: "off" }, ] } ] </script> <?php }
NOTE: Take backup of ur map.js file first if u have made any style related changes there.
Plz let me know how it goes.
Thanks
-VikasYour welcome.
This is a better solution,
Plz put this snippet in your theme’s functions.php files.add_action('init' , 'geodir_redirect_to_default_login') ; function geodir_redirect_to_default_login() { if(isset( $_REQUEST['geodir_signup'])) { wp_redirect(home_url().'/wp-login.php'); exit(); } }
Hi,
I came to know that when u copy that query and paste, it does not retain the formatting correctly due to forum editor, so i have put that query in a txt file. Plz find it.Thanks
Hi,
Please let me know if u have added those CPT again?
I have fixed this issue permanently. I just need ur assistance to check if its working fine. I have checked it my end, but it would be good if i get confirmation from u that things are working fine even if u enter same french values again.Steps to take backup of CPT settings:
To take backup of that option, go to phpmyadmin of the WP database , run this sql to get the particular option row in database.
SELECT * FROM wp_options WHERE option_name LIKE '%geodir_post_types%'
After this u will see specific record, just edit it and copy the big textarea text somewhere else, this way u have taken backup of all current CPTs settings. Have a look on attached image for more clarification about backup.
Now just extract attached zip, upload these 2 php files in Custom post type ad-on folder using FTP.
Thanks
VikasHi,
With the Geodirectory u can offer free trial in Days only and that can be 90 as maximum. To check it plz change number of trial days to 90 or less.Please advise ?
This reply has been marked as private.Thanks so much, i will find a permanent solution for this problem tomorrow
Listing will be restored automatically if u will create CPT with same slug.
I am looking into a way to restore default CPT and a permanent solution for it, in mean time just recreate those CPT.
Thanks
Unfortunately u have lost all CPT related info, if u have inserted special characters there.
How many CPT were there aside of place and event?
Hi,
Plz dont forget to extract that .zip and upload geodirectory_template_actions.phpThanks
Hi,
Plz find attached zip, extract it and upload location-front.js in
plugins/geodir_location_manager/js/let me know your comment later.
Thanks
-
AuthorPosts