• Resolved doeri

    (@doeri)


    In the version 2.3.1, the title of the Location stoped accepting html attributes. Is this a permament change or just it is caused due to ta latest fix in “get_the_title”?

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

    (@tijmensmit)

    How did you use this before? The title field should be just for the title, not html attributes.

    What did you do with it on the front-end . Maybe there’s another way to do the same thing if you can share more about how you where using it.

    Plugin Author Tijmen Smit

    (@tijmensmit)

    removed – duplicate submission.

    Thread Starter doeri

    (@doeri)

    I used to use <strong></strong> HTML element in the title field in order to diffrentiate the title from the link, html example here:

    <strong><a target="_blank" href="#"> <strong> Pharmacy Store </strong> – www.pharmacystore.gr</a></strong> 

    Screenshot here: https://snipboard.io/9cJB4i.jpg

    • This reply was modified 2 months ago by doeri.
    Plugin Author Tijmen Smit

    (@tijmensmit)

    You where probably using the classic editor instead of Gutenberg? The get_the_title wasn’t properly sanitized, and this was indeed fixed in 2.3.1

    The correct / recommended way to do what you want is by adding the code below the functions.php inside your active theme folder.

    Do create a css rule to make the text inside the span not appear bold.

    add_filter( 'wpsl_store_header_template', 'custom_store_header_template' );

    function custom_store_header_template() {

    $header_template = '<% if ( wpslSettings.storeUrl == 1 && url ) { %>' . "\r\n";
    $header_template .= '<strong><a href="<%= url %>"><%= store %> - <span><%= url %></span></a></strong>' . "\r\n";
    $header_template .= '<% } else { %>' . "\r\n";
    $header_template .= '<strong><%= store %></strong>' . "\r\n";
    $header_template .= '<% } %>';

    return $header_template;
    }
    Thread Starter doeri

    (@doeri)

    Thank you for the snippet!

    One quick question, as I remember in the past there were a grouping marker clusters on the map, something like this https://snipboard.io/0pQfmY.jpg, am I wrong or the option has been removed in the current version?

    • This reply was modified 1 month, 3 weeks ago by doeri.
    Plugin Author Tijmen Smit

    (@tijmensmit)

    I missed a notification you responded, but under ‘Markers’ there’s a ‘Enable marker clusters?’ option.

    Enabling this will create the cluster markers.

Viewing 6 replies - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.