Map doesn't show on listing page
This topic contains 9 replies, has 4 voices, and was last updated by Tilen 6 years, 9 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support TicketTagged: Listing Map
-
AuthorPosts
-
January 29, 2018 at 6:56 pm #414855
Hello,
after I update Kleo theme there is no map on listing page. I use Supreme directory style. I’m calling supreme directory style from plugin supreme_plugin which I have created.
Code in geodirectory-compatibility is the same:
if (get_option('geodir_show_listing_right_section', true)) { add_action('geodir_listings_sidebar_right_inside', 'sd_map_show'); remove_action('geodir_listings_sidebar_left', 'geodir_action_listings_sidebar_left', 10); } else { add_action('geodir_listings_sidebar_left_inside', 'sd_map_show'); remove_action('geodir_listings_sidebar_right', 'geodir_action_listings_sidebar_right', 10);
Also geodir-listing.php and settings in Geodirecory listing page (pic listing_settings)
I also try add listing map via widget on right sidebar but doesn’t helps. I try also with shortcode from Core Shortcodes in text widget and doesn’t work.
Thanks for help,
T
January 30, 2018 at 12:19 am #414898Hello,
for Kleo listings pages the map is built in to Kleo and the only GD control that influences that is at:
GD > Design > Listings > Listing Right Section (Check to Show)
For support with Kleo and the Kleo GD integration you may need to contact the Kleo authors.
What happens if you disable your plugin and switch to 2017? With 2017 you will need to add the GD Listing Map widget to the page, but this will help you determine where the issue is.
January 30, 2018 at 8:23 am #414946Hello,
Listing right section is checked and If I deactivate plugin problem still stays.
Can you help me with solution how to add listing map widget?
I try with shortcode for listing map widget in geodir-listing.php but map is not in right position also this is not the right way – I need action hook from plugin which I call from geodirectory-compatibility but code for map is already there.
Thanks for help,
A
January 30, 2018 at 9:02 am #414949Hi Tilen,
Please share the URL of the site in question so we can take a better look at it and also WP temp admin access to your site. You can post the details here using the private reply option below.
January 30, 2018 at 9:09 am #414951This reply has been marked as private.January 31, 2018 at 10:27 am #415110Hello,
there are several pages that won’t finish loading for me, and I am getting “page unresponsive” errors in the browser.
Have you edited the Kleo files?
Are you saying you are not using the files provided by Kleo to load the map?Why not just use the KLeo theme as is? Or the Supreme Directory theme?
To look into the listing page further, please disable all non-GD plugins and see which one is causing the conflict there.
The shortcode method for loading the map is what is used inside our Supreme Directory.
You need help with loading a map without a widget and without a shortcode? That would be a customization.
I will flag this for a developer in case they have a different opinion.
Also, you are using Loco translate which can create problems with translation files: https://wpgeodirectory.com/docs/known-issues/#loco
January 31, 2018 at 1:59 pm #415143You have a gap at the top of your page which is causing a JS error, this might be related
Stiofan
January 31, 2018 at 6:09 pm #415206Hello,
thanks for informations. I will change translation plugin with WPML
except files in /kleo/lib/plugin-geodirectory I didn’t edit Kleo files before and after update teme.
I only want Supreme directroy style (listing and detail page) in Kleo theme so I create plugin with geodirectory-compatibility which was working fine before updating Kleo.
In Geodirectory templates I added full_w class to geodir-listing for full width and add advanced search shortcode in map-function.php
If I deactivate all plugins and leave just Geodirectory plugins and plugin for Supreme style, map still doesnt’ work and I get warning (in attachment):
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘sd_map_show’ not found or invalid function name in /var/www/dev/wp-includes/class-wp-hook.php on line 286Stiofan, thanks, but I don’t understand that gap and how to fix it:/
Thanks for help,
T
January 31, 2018 at 7:56 pm #415218It needs to be resolved first, even then if this is a customisation we can’t help.
The gap can be caused by a few things, usually a space or error in a file loaded before, u can check if it disappears with changing theme or disabling plugins.
Stiofan
January 31, 2018 at 9:36 pm #415230Hello,
thanks for answer. I was update Kleo theme and modify geodirectory-combatibility and now shows map on listing page.
I wonder about css too:
Example: before I was update Kleo theme, styling for button to import Facebooke page and Review of listing was worked from Kleo child style with:
#gd_facebook_import{ margin-top: 0px; background-color: #3b5998; color: white; padding: 8px 15px; border-radius: 3px; border: none; } /*class for preview listing*/ .potrditev { background-color: #66d149 !important; color: white !important; padding: 14px 18px !important; font-size: 20px !important; margin: 5px 0 !important; border: 1.9px solid #66d149 !important; border-radius: 30px !important; -webkit-transition: all .2s ease-in-out; transition: all .2s ease-in-out; }
..and I wonder why doesn’t reading now that custom style from child theme.
Thanks for help,
T
` -
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket