"resources" folder being added to asset_path() output

Staging site: https://dws-a70.oit.duke.edu/

Locally, everything is working fine. However, when I push my theme to staging, asset_path() returns:

THEME_DIR/resources/dist/images/asset.png

Instead of:

THEME_DIR/dist/images/asset.png

This happens for all assets including should enqueued in setup.php.

Any idea how to troubleshoot this?

Thanks in advance!

Did you by any chance “upgrade” your Sage-based theme from an earlier beta to Beta 4?

For some reason, doing this causes WordPress to get confused, and it thinks the theme is activated from inside /resources rather than from its root directory.

Try de-activating and re-activating your theme to fix it.

2 Likes

Yep, it was an upgrade. You were right about the solution. Thank you!