How to use a grid instead of a list for the results
-
Hi,
we use some customization for the results list. This is very easy via the “wpsl_listing_template” filter. Here are the first lines of the function:
add_filter('wpsl_listing_template', 'custom_listing_template'); function custom_listing_template() { global $wpsl, $wpsl_settings; $listing_template = '<li data-store-id="<%= id %>">' . "\r\n"; $listing_template .= "\t\t" . '<div class="wpsl-store-location">' . "\r\n"; $listing_template .= "\t\t\t\t" . '<p><%= thumb %></p>' . "\r\n"; $listing_template .= "\t\t\t\t" . '<p>' . "\r\n";
This works great. However, we would prefer to have the results in a grid and not as a list. While we can customize the list items via this function, the list tag itself (UL) is created elsewhere. Is it possible to remove the UL tag, so that we could use DIVs instead of LIs in the function? This would give us much more freedom for the layout.
Thank you very much!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.