Tijmen Smit
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Store Locator] The title of the Location stoped accepting html attributesI missed a notification you responded, but under ‘Markers’ there’s a ‘Enable marker clusters?’ option.
Enabling this will create the cluster markers.Forum: Plugins
In reply to: [WP Store Locator] WordPress 7.0 CompatibilityThere’s probably a conflict with a theme / other plugin. Can you open the browser console on the admin page and press F12, do any js errors appear from other plugins / themes?
Are all your other plugins up to date? If possible, can you for a second disable other plugins and switch back to a default theme and see if this fixes it? If so, then enable the plugins again one by one and let me know which one breaks it.Forum: Plugins
In reply to: [WP Store Locator] Bug + GDPR issue: cdn.rawgit.com hardcoded in v2.3.1add_filter( 'wpsl_js_settings', 'custom_js_settings' );
function custom_js_settings( $settings ) {
$settings['clusterImagePath'] = 'https://yourdomain.com/path/to/clustermarkerimages/m';
return $settings;
}Add this to the functions.php inside your active theme filder, fix the domain + path and it should load them locally.
Forum: Plugins
In reply to: [WP Store Locator] Bug + GDPR issue: cdn.rawgit.com hardcoded in v2.3.1I didn’t test it, but you should be able to use the wpsl_js_settings filter to change the clusterImagePath to a local url path ( self hosted ) where you stored the different cluster marker images ( m1.png to m5.png ). Then it will no longer make a request to an external source.
I hope to release a public beta for the v3 update in the next weeks, the final 3.0 release all depends on the feedback to the beta version.Forum: Plugins
In reply to: [WP Store Locator] Bug + GDPR issue: cdn.rawgit.com hardcoded in v2.3.1Hi,
WPSL v3 will use the new cluster marker styles, but the current v2 path still works for me. When I enable the marker clusters they work just fine ( https://cdn.rawgit.com/googlemaps/js-marker-clusterer/gh-pages/images/m1.png is loaded ). It does have a redirect set on it.
v3 will also have a build in GDPR check option, but otherwise plugins like Borlabs Cookie are also supported. Users will have agree to loading Google Maps before the plugin runs.Forum: Plugins
In reply to: [WP Store Locator] Custom Maps by Country/State selectionsForum: Plugins
In reply to: [WP Store Locator] Custom Maps by Country/State selectionsI see the issue. There’s a problem in the code, it handles passed arguments different if you’re using a dropdown or checkboxes. Yeah, it should work with the same argument for both the dropdown and checkbox options, I will fix this in the next update.
https://royalptest.wpengine.com/wpsl/?wpsl-widget-categories=154 selects the checkbox.
If you want the map + list then you should be able to use the wpsl shortcode as well and do [wpsl category_selection=”154″], and then with css target the .wpsl-search element to hide it so you just end up with the map and the list.Forum: Plugins
In reply to: [WP Store Locator] Custom Maps by Country/State selectionsI may have misunderstood your question.
If you have a dropdown on your website with country -> states, and this redirects the user to the store locator page ( wpsl for example ), then you can do this wpsl/?wpsl-categories=category_id.
Add the code below to the functions.php inside you active theme folder and the correct category will automatically be selected.add_filter( 'wpsl_dropdown_category_args', 'custom_dropdown_category_args' );
function custom_dropdown_category_args( $args ) {
if ( isset( $_REQUEST['wpsl-categories'] ) ) {
$selected_id = absint( $_REQUEST['wpsl-categories'] );
$args['selected'] = $selected_id;
}
return $args;
}Forum: Plugins
In reply to: [WP Store Locator] Custom Maps by Country/State selectionsConditional filters are currently not supported, but this will come in a future update.
I don’t know how many states / countries you are dealing with, but the “easiest” fix to get a map showing a restricted number of markers is by using the wpsl_map shortcode with the category attribute.
On the New York page you can do [wpsl_map category=”new_york”] which will only show the New York locations.Forum: Plugins
In reply to: [WP Store Locator] The title of the Location stoped accepting html attributesYou where probably using the classic editor instead of Gutenberg? The get_the_title wasn’t properly sanitized, and this was indeed fixed in 2.3.1
The correct / recommended way to do what you want is by adding the code below the functions.php inside your active theme folder.
Do create a css rule to make the text inside the span not appear bold.add_filter( 'wpsl_store_header_template', 'custom_store_header_template' );
function custom_store_header_template() {
$header_template = '<% if ( wpslSettings.storeUrl == 1 && url ) { %>' . "\r\n";
$header_template .= '<strong><a href="<%= url %>"><%= store %> - <span><%= url %></span></a></strong>' . "\r\n";
$header_template .= '<% } else { %>' . "\r\n";
$header_template .= '<strong><%= store %></strong>' . "\r\n";
$header_template .= '<% } %>';
return $header_template;
}Forum: Plugins
In reply to: [WP Store Locator] The title of the Location stoped accepting html attributesremoved – duplicate submission.
- This reply was modified 3 weeks, 3 days ago by Tijmen Smit.
Forum: Plugins
In reply to: [WP Store Locator] The title of the Location stoped accepting html attributesHow did you use this before? The title field should be just for the title, not html attributes.
What did you do with it on the front-end . Maybe there’s another way to do the same thing if you can share more about how you where using it.Forum: Plugins
In reply to: [WP Store Locator] Unchecked required fields create infinite loop of requestHi, I’m aware of this and it will be fixed later today, or otherwise with tomorrows update.
If you visit the WPSL settings page again the notices are removed.- This reply was modified 1 month ago by Tijmen Smit.
Forum: Plugins
In reply to: [LiteSpeed Cache] Exclude wp_localize_script varI fixed it by using the script_loader_tag filter to place the data-no-defer=”1″ attribute on the script tag that holds the wpslSettings var, now it works fine 🙂
- This reply was modified 1 month, 2 weeks ago by Tijmen Smit.
Forum: Plugins
In reply to: [WP Store Locator] The latest update no longer displays the filtersI see lots of filters on your page and the search seems to work fine. What exactly is missing?