How to use a grid instead of a list for the results

[ad_1]

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!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer