pjdc
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Store Locator] More info box not working properlyOk, so updating the theme was the problem…
Thanks for helping me out!
I got everything back up and running!For anyone looking for the code to add the description to the map-box:
add_filter( 'wpsl_info_window_template', 'custom_info_window_template' ); function custom_info_window_template() { $info_window_template = '<div data-store-id="<%= id %>" class="wpsl-info-window">' . "\r\n"; $info_window_template .= "\t\t" . '<p>' . "\r\n"; $info_window_template .= "\t\t\t" . wpsl_store_header_template() . "\r\n"; $info_window_template .= "\t\t\t" . '<span><%= address %></span>' . "\r\n"; $info_window_template .= "\t\t\t" . '<% if ( address2 ) { %>' . "\r\n"; $info_window_template .= "\t\t\t" . '<span><%= address2 %></span>' . "\r\n"; $info_window_template .= "\t\t\t" . '<% } %>' . "\r\n"; $info_window_template .= "\t\t\t" . '<span>' . wpsl_address_format_placeholders() . '</span>' . "\r\n"; $info_window_template .= "\t\t" . '</p>' . "\r\n"; $info_window_template .= "\t\t" . '<% if ( description ) { %>' . "\r\n"; $info_window_template .= "\t\t" . '<%= description %>' . "\r\n"; $info_window_template .= "\t\t" . '<% } %>' . "\r\n"; $info_window_template .= "\t\t" . '<%= createInfoWindowActions( id ) %>' . "\r\n"; $info_window_template .= "\t" . '</div>' . "\r\n"; return $info_window_template; } add_filter( 'wpsl_include_post_content', '__return_true' ); ?>Forum: Plugins
In reply to: [WP Store Locator] More info box not working properlyHello Tijmen,
Indeed, the info was probably still showing because of the cache.
Now it works like you say, the box opens, but no extra info (mail, website phone) is inside.I have used the text-editor for this info (mail, site, phone), not the fields of the plugin.
The fact that this info does not show anymore is probably because i updated WordPress and the function was deleted.Could you please remind me how to add the function to show the text-editor info in the map-box? I added this function and was working before the WordPress update, but i forgot how…
Thanks!
Wow, it was that simple… π
Thanks a lot for the solution!Ok, thanks for looking into it!
I used WPML > String translation, then searched for strings containing the word ‘search’, within the wpsl domain.
This is a screenshot of one of the translations.
I can not see if this is the ‘[wpsl_settings]search_label’ but i guess it will be. How can i check that?Forum: Plugins
In reply to: [WP Store Locator] More info link scrolls down pageForum: Plugins
In reply to: [WP Store Locator] WP Store Locator WPML Stores DoubleOk, thanks for the reply.
I have a caching plugin, but it was not active at the time.Forum: Plugins
In reply to: [WP Store Locator] WP Store Locator WPML Stores DoubleHi Tijmen, i don’t really know what i dit to fix the problem, but is is suddenly not showing the search results double. I will markt the topic as resolved.
Thanks.
Forum: Plugins
In reply to: [WP Store Locator] WP Store Locator WPML Stores DoubleHello Tijmen,
The URL is http://security-expert.liquidsociety.be/contact/
Disabling all other plugins and switching to de default theme did not help.
I’m using the latest version of WPML, 3.4.1.1
Forum: Plugins
In reply to: [WP Store Locator] WP Store Locator WPML Stores DoublePs, i have already read this post (https://wpstorelocator.co/document/duplicate-locations-search-results-wpml/) and made sure the latitude and longitude values are exactly the same.
Forum: Plugins
In reply to: [WP Store Locator] More info link scrolls down page