css file as php – how to get wp environment variables
-
i have a plugin frontend (public) stylesheet with a background image definition which has to be set dynamic to the plugin directory folder:
the stylesheet has the file ending .php (not .css)
.bbnuke_tb_head_asc { background: url(<?php echo WP_PLUGIN_URL . '/images/asc.gif'; ?>); }
how i can get the wp enviroment variables like WP_PLUGIN_URL in a stylesheet php file?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘css file as php – how to get wp environment variables’ is closed to new replies.