Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi there!

    The “More Info” link has a checkbox in the settings (check the documentation here) and see this screenshot.

    Maybe you disabled this checkbox by mistake? Check it out and let us know otherwise.

    Regards,

    Thread Starter mandeeej

    (@mandeeej)

    I havent disabled it.

    If i remove my custom code then it re-appears…….

    add_filter( 'wpsl_listing_template', 'custom_listing_template' );
    
    function custom_listing_template() {
    
        global $wpsl_settings;
    
        $listing_template = '<li data-store-id="<%= id %>">' . "\r\n";
        $listing_template .= "\t\t" . '<div>' . "\r\n";
        $listing_template .= "\t\t\t" . '<p><%= thumb %>' . "\r\n";
        $listing_template .= "\t\t\t\t" . wpsl_store_header_template( 'listing' ) . "\r\n";
    
    	$listing_template .= "\t\t\t\t" . '<span class="wpsl-town"><%= town %></span>' . "\r\n";
    	$listing_template .= "\t\t\t\t" . '<span class="wpsl-phone"><b>Tel:</b><a href=\'tel:<%= phone %>\'><%= phone %></a></span>' . "\r\n";
    	$listing_template .= "\t\t\t\t" . '<span class="wpsl-url"><b>Web:</b><a href=\'tel:<%= url %>\'><%= url %></a></span>' . "\r\n";
    	
        $listing_template .= "\t\t\t\t" . '<span class="wpsl-street"><b>Address:</b><span><%= address %></span></span>' . "\r\n";
        $listing_template .= "\t\t\t\t" . '<% if ( address2 ) { %>' . "\r\n";
        $listing_template .= "\t\t\t\t" . '<span class="wpsl-street"><b>&nbsp</b><%= address2 %></span>' . "\r\n";
        $listing_template .= "\t\t\t\t" . '<% } %>' . "\r\n";
        $listing_template .= "\t\t\t\t" . '<span><b>&nbsp</b>' . wpsl_address_format_placeholders() . '</span>' . "\r\n";
        $listing_template .= "\t\t\t\t" . '<span class="wpsl-country"><b>&nbsp</b><%= country %></span>' . "\r\n";
        $listing_template .= "\t\t\t" . '</p>' . "\r\n";
        
    
        $listing_template .= "\t" . '</li>' . "\r\n"; 
    
        return $listing_template;
    }

    Hi again,

    Oh, I see you have a custom store listing template. You have omitted this line, it checks whether the “More info” link needs to be displayed or not:

    $listing_template .= "\t\t\t" . wpsl_more_info_template() . "\r\n"; // Check if we need to show the 'More Info' link and info

    You can see this line in the example in the documentation for the wpsl_listing_template filter.

    I hope that helps.
    Regards!

    Thread Starter mandeeej

    (@mandeeej)

    Perfect thank you ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Store Details’ is closed to new replies.