Problem:
Enfold saves dynamic CSS-changes from the setup-box in the backend in wp-content/uploads/dynamic-avia/.
I am using a plugin (WP Offload S3) to push Media-uploads to amazon S3, which also changes locations of images and other resources from “myserver/wp-content/uploads” to “s3.myserver” for the loop. Meaning: uploads DO go tu upload, but then eventually are transferred to S3; the files however are always called from S3.
Now, the stylesheet “avia-dynamic-css” points towards S3, which is strange, as the paths which are generated in functions-enfold.php and functions.php use wp_upload_dir(), which returns wp-content/upload.
How to change this? maybe change the folder where the css file is stored alltogether? TIA -Peter
Hey,
Seems like the plugin is hooking into wp_upload_dir
and returns the s3 path. There’s a filter you can use to change the default path:
add_filter('avia_dyn_stylesheet_dir_path', function() {
return "/new/path/of/dynamic/styleshet";
});
Best regards,
Josue