Reply 191272 to: Use of Non-Writable Paths

Avatar: PremiumPetware
PremiumPetware
Participant
April 16, 2018 at 21:55

Thank you Rose.

I have created the empty dynamic.css in woopress-child theme folder (under plugins) and updated the functions.php as below;

<?php add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
function theme_enqueue_styles() {
wp_enqueue_style( ‘child-style’, get_stylesheet_uri(), array( ‘bootstrap’, ‘parent-style’ ) );
wp_enqueue_style( 'dynamic-css', get_stylesheet_directory_uri() . '/dynamic.css' );
}

After pushing to test, I still get the error

Unable to write to file /srv/bindings/big_long_code_here/code/wp-content/themes/woopress/dynamic.css

Have I edited the functions.php file incorrectly?

Go To The Whole Conversation In Topic

Helpful Topics

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.