Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Tijmen Smit

    (@tijmensmit)

    You want to change the search results template? You can do this with this filter. The related section on that page links to other filter that you can use for other templates showing store data.

    Thread Starter AlessioAngeloro

    (@alessioangeloro)

    Hi Tijmen,

    thanks for your quick reply.

    No, i mean the original html output of the results, under the map.

    I don’t need custom fields at this moment.

    Regards,
    Alessio

    Plugin Author Tijmen Smit

    (@tijmensmit)

    You don’t necessarily need to add custom fields when you use the wpsl_listing_template filter. You can also use it to just change the original code from the underscore-functions.php.

    Just copy the code from line 45-66 and use that in the code from the usage section.

    Thread Starter AlessioAngeloro

    (@alessioangeloro)

    Hi Tijmen,

    i made a simple copy of orginal templates (listing below the map) and add the code from 45 to 66 lines, but i think something is wrong, could you help me please ?

    With this problems at front end

    <%= thumb %> <%= store %> <%= address %> <% if ( address2 ) { %> <%= address2 %> <% } %> <%= city %> <%= state %> <%= zip %> <%= country %>
    <% if ( !_.isEmpty( phone ) || !_.isEmpty( fax ) || !_.isEmpty( email ) ) { %>

    Dettagli
    <% } %>
    <%= distance %> km <%= createDirectionUrl() %>

    This is the code https://codeshare.io/HWOSl

    Kind regards.
    Alessio

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Override underscore-functions.php template’ is closed to new replies.