{@stylesheet_directory_uri} url path issue.
-
Hey oncletom, looking forward to resolving this, as I can see the power of this plugin.
When I insert
{@stylesheet_directory_uri}
intobackground-image:url("{@stylesheet_directory_uri}/images/logo.png");
, it does insert the correct absolute path, but also appends itself to the end, like this:background-image:url("https://example.com/wp-content/themes/theme_name/{@stylesheet_directory_uri}/images/logo.png");
Is anyone able to shed some light on how this can be fixed? It is breaking every url link in my styles.
The following is in my functions.php:
add_action('init', 'theme_enqueue_styles'); function theme_enqueue_styles() { wp_enqueue_style('style', get_stylesheet_directory_uri().'/style.less'); }
…and I have a single
style.less
file in my theme’s root, with a number of@import
‘s bringing in various other LESS stylesheets.If there’s any more information I can provide, please let me know.
Thanks so much in advance!
- The topic ‘{@stylesheet_directory_uri} url path issue.’ is closed to new replies.