Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1013115

    Hi

    I am using the plugin WP store locator

    I want to hide the start marker and according to this link in the theme functions.php file which I have done and it doesn’t work (I put in the child’s php file)
    https://wpstorelocator.co/document/hide-start-marker/

    I need to place the following coding in
    add_filter( ‘wpsl_js_settings’, ‘custom_js_settings’ );

    function custom_js_settings( $settings ) {

    $settings[‘startMarker’] = ”;

    return $settings;
    }

    I also want to hide the directions and tried adding the following coding to both the quick.css and CSS neither of which worked.

    .wpsl-directions {
    display: none !important;
    }

    Can you help, please?

    Thanks

    #1013129

    Hi info224!

    I added this code to the quick css field to solve both issues:

    
    #top #wrap_all .wpsl-gmap-canvas img[src*="red@2x"], #top #wrap_all .wpsl-icon-direction {
        display: none !important;
    }
    

    I had to purge the server cache (Admin Bar > Performance > Purge All Caches)

    Cheers!
    Peter

    #1013259

    Hi

    I’m sorry but when I try adding it, it doesn’t work :( I purged the cache both on the server and the browser.

    #1013262

    Hi,

    But it works on my end (screenshot: http://s3.amazonaws.com/feather-files-aviary-prod-us-east-1/5c5f873d5/2018-09-23/64bd3541bc6c4133b2c34dce7e5763e6.png ). The red marker is now hidden and the directions button is also hidden (blue arrow). Please try to clear the browser cache again, maybe try to view the map with another browser.

    Best regards,
    Peter

    #1013558

    Hi

    Yes, you’re right it does, brilliantly thank you. I was hoping to hide a couple of other things please see the image

    View post on imgur.com

    I tried to hide the street name using the below in the quick css but it didn’t work :(

    .wpsl-street { display: none; !important; }

    #1013591

    Hi,

    Please use this code to hide the street name + directions link:

    
    #top .wpsl-directions, #top .wpsl-street{ display: none !important; } 
    

    Best regards,
    Peter

    #1013634

    Prefect thank you

    #1013642

    Hi!
    Great, glad I could help you :)

    Regards,
    Peter

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Location Plugin’ is closed to new replies.