Custom markers on child theme
-
Hi tinjen, first of all, thanks a lot for your hard work. Your plugin is excellent ??
I am trying to customize the markers folder following the official instructions but I am getting an unexpected result.
I am using a child-theme and in it’s functions.php I wrote the following
define( 'WPSL_MARKER_URI', get_stylesheet_directory() . '/wpsl-markers/' ); 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; }
but the icons are nowhere to be found. On the admin page i get an image missing symbol and the uri is trying to use is: https://localhost/Library/WebServer/Documents/my-site/wp-content/themes/enfold-child/wpsl-markers/blue.png
Since I am using a child theme, I used get_stylesheet_directory() instead of get_template_directory() but both give me the same localhost/Library/etc… behaviour.
The localhost/Library/WebServer/Documents/my-site/wp-content/etc…. is obviously wrong. It should be localhost/wp-content/etc…
Any ideas?
Thanks in advance.
- The topic ‘Custom markers on child theme’ is closed to new replies.