Closed covertnine closed 8 years ago
As this is not a Redux bug or issue, it falls under premium support.
https://github.com/reduxframework/redux-framework/blob/master/CONTRIBUTING.md
Why not post a link to the premium support instead so I can just go pay for that? I'm digging around trying to figure out how to hire you...
I'm using the Redux Generator, and while the framework has been really easy to use for the most part, I've been running into some issues with generating a dynamic CSS file. I was able to see that the CSS was exporting when I echo'd it out to the console--so my options are setup correctly, but for some reason, I can't seem to get it to input the CSS to the file I have created.
I even chmodded the file temporarily to 777 and changed ownership/group to be for the webserver to no avail. It may have something to do with my server since I primarily update via SSH for things, but I'm not getting any debug errors, and despite that, the css file isn't dynamically updated. (It's empty still...)
I was able to get it working by outputting the CSS, but not using a compiler to dynamically generate it...
The admin-editor.css is in the same directory as the options-init.php file, and as far as I can tell my function is correctly pulling in my theme option argument.
Here's my options-init.php
` /* * For full documentation, please visit: http://docs.reduxframework.com/ * For a more extensive sample-config file, you may look at: * https://github.com/reduxframework/redux-framework/blob/master/sample/sample-config.php /
// 'async_typography' => TRUE, 'hints' => array( 'icon_position' => 'right', 'icon_color' => 'lightgray', 'icon_size' => 'normal', 'tip_style' => array( 'color' => 'light', ), 'tip_position' => array( 'my' => 'top left', 'at' => 'bottom right', ), 'tip_effect' => array( 'show' => array( 'duration' => '500', 'event' => 'mouseover', ), 'hide' => array( 'duration' => '500', 'event' => 'mouseleave unfocus', ), ), ), 'output' => TRUE, 'output_tag' => TRUE, 'settings_api' => TRUE, 'cdn_check_time' => '1440', 'compiler' => TRUE, 'page_permissions' => 'manage_options', 'save_defaults' => TRUE, 'show_import_export' => TRUE, 'database' => 'options', 'transient_time' => '3600', 'network_sites' => TRUE, );
function compiler_action($options, $css, $changed_values) { global $wp_filesystem;
}
add_filter('redux/options/' .$args['opt_name']. '/compiler', 'compiler_action', 10, 3);
`