Stylesheet version not showing in browser when adding version number to stylesheet in enqueue

Question

I’m trying to figure out why I’m not seeing the stylesheet version number is my browser, when I add the version number to the enqueue function, where I enqueue the stylesheet.

Here’s the code:

wp_enqueue_style('sage/main.css', asset_path('styles/main.css'), array(), '1111111' );

Using the version number ‘1111111’ just to test.

When I inspect in my browser, I still see the stylesheet without a version number (client name obscured for privacy):

<link rel="stylesheet" id="sage/main.css-css" href="http://localhost:8000/wp-content/themes/XXXX/dist/styles/main.css" type="text/css" media="all">

The styles are loading and everything else is correct, just missing the version number. What am I missing?

(This is a laravel site.)

0
Jillian Hoenig 9 months 2022-09-22T16:03:04-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse