Forum Replies Created

Viewing 15 replies - 16 through 30 (of 59 total)
  • Thread Starter toimisto

    (@toimisto)

    Ok so apparently leaving “Extensions of Files to Track as Downloads” from the settings blank caused this issue

    Thread Starter toimisto

    (@toimisto)

    I tried alternative way by adding this to functions and disabling the plugin but cant see this in the strings admin menu.

    <?php add_action(‘init’, function() {

    pll_register_string(‘client-search’, ‘Search’);

    });
    ?>

    Losing my mind here. Please help. Going back to wpml soon.

    Thread Starter toimisto

    (@toimisto)

    That was FAST thank you

    Thread Starter toimisto

    (@toimisto)

    I give up. It seems that the plugin loads css to the footer and is somehow messing up jquery stuff so the button does not work.

    Any recommendations for others? GDPR Cookie Consent seemed smooth but didnt work with wpml string translations…

    Thread Starter toimisto

    (@toimisto)

    Thank you!

    Thread Starter toimisto

    (@toimisto)

    @leadsoft hey thanks it was actually issue in style.css (defined as parent theme) so clearing that up fixed the issue.

    Thread Starter toimisto

    (@toimisto)

    Ugh its a live high traffic site but we’ll give it a try later on thanks

    toimisto

    (@toimisto)

    +1 same here this error pops up when saving locations

    Thread Starter toimisto

    (@toimisto)

    Or actually the server time seems off but we cant change that…

    Thread Starter toimisto

    (@toimisto)

    Ok it works if I return the normal pin. My custom pin shows in admin normally but if I activate it, none is shown in the frontend. Here’s my functions.php code:

    add_filter( ‘wpsl_admin_marker_dir’, ‘custom_admin_marker_dir’ );

    function custom_admin_marker_dir() {

    $admin_marker_dir = get_stylesheet_directory() . ‘/wpsl-markers/’;

    return $admin_marker_dir;
    }

    define( ‘WPSL_MARKER_URI’, dirname( get_bloginfo( ‘stylesheet_url’) ) . ‘/wpsl-markers/’ );

    add_filter( ‘wpsl_marker_props’, ‘custom_marker_props’ );

    function custom_marker_props() {

    $marker_props = array(
    ‘scaledSize’ => ‘48,48’,
    ‘origin’ => ‘0,0’,
    ‘anchor’ => ‘12,35’
    );

    return $marker_props;
    }

    Same here. Is there a way to localise or even just change this:

    “Your subscription has been confirmed.
    You’ll hear from us soon.”

    ?

    Thread Starter toimisto

    (@toimisto)

    No idea how to avoid this? Anyone else have the same problem? My single location is becoming triple atm because the translations

    Thread Starter toimisto

    (@toimisto)

    Thanks for your reply. I have them in marker info boxes through functions.php

    function custom_info_window_template() {
    
        global $wpsl;
    
        $info_window_template = '<div data-store-id="<%= id %>" class="wpsl-info-window">' . "\r\n";
        $info_window_template .= "\t\t" . '<p>' . "\r\n";
        $info_window_template .= "\t\t\t" .  wpsl_store_header_template() . "\r\n";  // Check which header format we use
        $info_window_template .= "\t\t\t" . '<span><%= address %></span>' . "\r\n";
        $info_window_template .= "\t\t\t" . '<% if ( address2 ) { %>' . "\r\n";
        $info_window_template .= "\t\t\t" . '<span><%= address2 %></span>' . "\r\n";
        $info_window_template .= "\t\t\t" . '<% } %>' . "\r\n";
        $info_window_template .= "\t\t\t" . '<span>' . wpsl_address_format_placeholders() . '</span>' . "\r\n"; // Use the correct address format
        $info_window_template .= "\t\t" . '</p>' . "\r\n";
        $info_window_template .= "\t\t" . '<% if ( phone ) { %>' . "\r\n";
        $info_window_template .= "\t\t" . '<span><strong>' . esc_html( $wpsl->i18n->get_translation( 'phone_label', __( 'Phone', 'wpsl' ) ) ) . '</strong>: <%= formatPhoneNumber( phone ) %></span>' . "\r\n";
        $info_window_template .= "\t\t" . '<% } %>' . "\r\n";
    
        $info_window_template .= "\t\t" . '<% if ( wifi ) { %>' . "\r\n";
        $info_window_template .= "\t\t" . '<span><strong>Wifi</strong>: <%= wifi %></span>' . "\r\n";
        $info_window_template .= "\t\t" . '<% } %>' . "\r\n";
    
    	$info_window_template .= "\t\t" . '<% if ( dogs ) { %>' . "\r\n";
        $info_window_template .= "\t\t" . '<span><strong>Dogs</strong>: <%= dogs %></span>' . "\r\n";
        $info_window_template .= "\t\t" . '<% } %>' . "\r\n";
    
    	$info_window_template .= "\t\t" . '<% if ( email ) { %>' . "\r\n";
        $info_window_template .= "\t\t" . '<span><strong>' . esc_html( $wpsl->i18n->get_translation( 'email_label', __( 'Email', 'wpsl' ) ) ) . '</strong>: <%= email %></span>' . "\r\n";
        $info_window_template .= "\t\t" . '<% } %>' . "\r\n";
    
    	$info_window_template .= "\t\t" . '<% if ( hideopening ) { %>' . "\r\n";
        $info_window_template .= "\t\t" . '<div class="hideopening">' . "\r\n";
        $info_window_template .= "\t\t" . '<% } %>' . "\r\n";
    
        $info_window_template .= "\t\t" . '<% if ( hours ) { %>' . "\r\n";
        $info_window_template .= "\t\t" . '<div class="wpsl-store-hours"><strong>' . esc_html( $wpsl->i18n->get_translation( 'hours_label', __( 'Hours', 'wpsl' ) ) ) . '</strong>' . "\r\n";
        $info_window_template .= "\t\t" . '<%= hours %>' . "\r\n";
        $info_window_template .= "\t\t" . '</div>' . "\r\n";
        $info_window_template .= "\t\t" . '<% } %>' . "\r\n";   
    
    	$info_window_template .= "\t\t" . '<% if ( hideopening ) { %>' . "\r\n";
        $info_window_template .= "\t\t" . '</div>' . "\r\n";
        $info_window_template .= "\t\t" . '<% } %>' . "\r\n"; 
    
        $info_window_template .= "\t\t" . '<%= createInfoWindowActions( id ) %>' . "\r\n";
        $info_window_template .= "\t" . '</div>';
    
        return $info_window_template;
    }
    Thread Starter toimisto

    (@toimisto)

    ok so taxonomy-wpsl_store_category.php

    <?php
    	$term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) );
    	if ( !empty( $term ) ){
        	echo do_shortcode('[wpsl category="' . $term->slug .'" start_location="' . $term->slug .'"]');
    	}
    ?>
    Thread Starter toimisto

    (@toimisto)

    Im getting the missingkeymap error only on wp-admin thus im not able to setup the location since the input is just showing google error there. But I realised I can override it with the shortcode tag so it’s all good. Thanks for your support and fantastic plugin!

Viewing 15 replies - 16 through 30 (of 59 total)