redux-framework icon indicating copy to clipboard operation
redux-framework copied to clipboard

How can I use custom css file for option framework?

Open risingrun opened this issue 6 years ago • 2 comments

Hi, Anyone can help me please?

I am using the redux framework to develop my theme.

While I created dynamic-css.php file in developing time it worked, but after resetting the wordpress the dynamic-css.php doesn't work in header.php it working, So how can I make CSS file which property value will change by options panel?

risingrun avatar Feb 06 '20 15:02 risingrun

Did you figure this out?

dovy avatar Jun 23 '20 12:06 dovy

Hello ! For use $globals Redux on css.php file :-)

On start your php css wrote this line :

define('WP_USE_THEMES', false); require('../../../../wp-load.php'); /* change path in your level :-) */

header("Content-type: text/css; charset: UTF-8"); $variableFooterColor = $GLOBALS['redux_demo']['opt-color-footer']; /* access to globals variables */

/* write css and use php variables */

Enjoy ;-)

zebulondev avatar Jun 29 '20 18:06 zebulondev