Title: Hide start marker function error
Last modified: January 24, 2023

---

# Hide start marker function error

 *  Resolved [tractanz](https://wordpress.org/support/users/tractanz/)
 * (@tractanz)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/hide-start-marker-function-error/)
 * Hi there,
 * I have used the wpsl_js_settings filter to hide the start marker as per the documentation–
   [https://wpstorelocator.co/document/hide-start-marker/](https://wpstorelocator.co/document/hide-start-marker/)
 * This hides the marker, but I’m getting a console error below:
 * ![](https://i0.wp.com/snipboard.io/xk04cw.jpg?ssl=1)
 * Here is the code I used from the docs page:
 *     ```wp-block-code
       // -- Hide start marker
       add_filter( 'wpsl_js_settings', 'custom_js_settings' );
       function custom_js_settings( $settings ) {
           $settings['startMarker'] = '';
           return $settings;
       }
       ```
   
 * Any help would be much appreciated!
 * Cheers,

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

 *  [farroyo](https://wordpress.org/support/users/farroyob/)
 * (@farroyob)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/hide-start-marker-function-error/#post-16408748)
 * Hi there!
 * You don’t have to worry about that, that behaviour is expected but it is not 
   harmful in any way.
 * The way the code snippet works, it just modifies the expected file name for the
   start marker to an empty string, so instead of
 *     ```wp-block-code
       mydomain.com/wp-content/plugins/wp-store-locator/img/markers/start.png
       ```
   
 * The code snippet “deletes” the “start.png” part of the url, so the plugin now
   tries to load
 *     ```wp-block-code
       mydomain.com/wp-content/plugins/wp-store-locator/img/markers/
       ```
   
 * Which is a folder, so it just triggers a 403 (forbidden) error.
 * As I said, maybe not super-elegant, but it works and it is not harmful.
 * Regards,
 *  Thread Starter [tractanz](https://wordpress.org/support/users/tractanz/)
 * (@tractanz)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/hide-start-marker-function-error/#post-16409471)
 * Hey [@farroyob](https://wordpress.org/support/users/farroyob/),
 * Thanks for the explanation, really appreciate it!

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

The topic ‘Hide start marker function error’ is closed to new replies.

 * ![](https://ps.w.org/wp-store-locator/assets/icon-256x256.jpg?rev=1007784)
 * [WP Store Locator](https://wordpress.org/plugins/wp-store-locator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-store-locator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-store-locator/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-store-locator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-store-locator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-store-locator/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [tractanz](https://wordpress.org/support/users/tractanz/)
 * Last activity: [3 years, 4 months ago](https://wordpress.org/support/topic/hide-start-marker-function-error/#post-16409471)
 * Status: resolved