Custom URL in info box
-
Hi, I hope you can help. I’m trying to create a custom url in the info box on our site. I’ve managed to pull in the custom URL on the listing template, but struggling to change the url structure on the info box.
Some of our clubs have separate urls on our multisite and I need to output those urls in the infobox.I followed the listing template style that I created, but it’s not working. Can you tell me where I’m going wrong?:
add_filter( 'wpsl_info_window_template', 'custom_info_window_template' ); function custom_info_window_template() { global $wpsl_settings, $wpsl; $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" . '<% if ( wpslSettings.storeUrl == 1 && url ) { %>' . "\r\n"; $info_window_template .= "\t\t\t" . '<% <strong><a target="_blank" href="<%= url %>"><%= store %></a></strong>' . "\r\n"; $info_window_template .= "\t\t\t" . '<% } else { %>' . "\r\n"; $info_window_template .= "\t\t\t" . wpsl_store_header_template() . "\r\n"; $info_window_template .= "\t\t\t" . '<% } %>' . "\r\n"; $info_window_template .= "\t\t\t" . '<span><%= address %></span>' . "\r\n";
etc. etc. etc.
The page I need help with: [log in to see the link]
- The topic ‘Custom URL in info box’ is closed to new replies.