Hello Agenziae,
Some upgrades that I ran on the server and the support site caused some issues and the site was down for a few days. Only yesterday I finally got it back on and it can be found here. However, I decided to anyway deprecate the site because of some other issues like spamming and maintenance and will keep using this support forum instead.
Regarding your questions:
1. I will consider your request for a future release of the plugin. Until then, what you described can most likely be done with custom coding. Unfortunately, there isn’t a simple solution that I could provide you with. This will require some development work to be done.
2. Please refer to this reply where I described how to create a custom search form/results template file. After creating it you will be able to modify the PHP and CSS file as you wish.
I hope this helps.
Hello Eyal,
thank you for your kind answer.
I could style the search form/result template but I couldn’t find how to move the search form under the map and over the results.
I tried using shortcodes in this order:
[gmw map=”4″]
[gmw search_form=”4″]
[gmw search_results=”4″]
and set Form Submission-> Dispaly Map-> Using Shortcode
but the map keeps staying in the middle, just like when I use [gmw form=”4″].
How can I fix it?
Elementor
I made a single theme template for my cusom post type.
If I use the “Geo My WP Single Location” WIDGET it seems ok, but if I save and reopen the template with Elementor, it gives a technical issue and cannot open the template. I need to deactivate GMWP plugin and then open again.
No such issue if I just use the Single Location SHORTCODE inside Elementor.
One last thing: either Widget and Shortcode don’t respect the map_width=”100%” setting, the map is much smaller. Ok with pixels settings.
Regards!
First issue solved, I realized I had to set the Shorcode display also in the Page Load Results page:
Page Load Results-> Dispaly Map-> Using Shortcode
The two other issues with Elementor still remain.
Regards.
Hello @agenziae20,
1. I can see what causes the issue with Elementor. If you are confortable editing a core file, then a temporary solution would be to open the file geo-my-wp/plugins/single-location/includes/class-gmw-single-location-widget.php and replace line 233 which should be:
echo gmw_single_location_shortcode( $instance ); // WPCS: XSS ok.
with
if ( function_exists( 'gmw_single_location_shortcode' ) ) {
echo gmw_single_location_shortcode( $instance ); // WPCS: XSS ok.
}
Then save the file and test it.
I already applied this fix to the plugin and it will be availabe in the next release.
2. The issue with the map size is CSS related. Please try the below CSS as a temporary solution until the next release of the plugin:
.widget div.gmw-single-location-wrapper,
div.gmw-single-location-wrapper {
width: 100% ! important;
}
I hope this helps.
Hi Eyal,
both solutions worked, thank you very much!
I just can’t display location_meta in widget, ok via shortcode.
Regards.
Issue solved: I was testing both shortcode and widget on the same page to check differences, as soon as I deleted the shortcode I could find the location_meta displayed in the widget, so it probably was a conflict between the two.
Thank you very much for your help!
You are very welcome, @agenziae20.
I will test the scenario you described with the location_meta and see if there should be a fix that I need to apply to the plugin.