1799 posts
    Has referred 1+ members Has sold $5,000+ on Envato Market Has been a beta tester for an Envato feature Has collected 10+ items on Envato Market
+4 more
BroOf says

This is one way to include the wp-load.php file as unisphere said. You’d just do something like this at the top of your style PHP file.
<?php //Setup location of WordPress
$absolute_path = __FILE__;
$path_to_file = explode( 'wp-content', $absolute_path );
$path_to_wp = $path_to_file[0];

//Access WordPress
require_once( $path_to_wp.'/wp-load.php' );

//Now continue with any WordPress suff...
?>

#your-custom-thing {
     color: #<?php echo get_option(‘color’); ?>;
}

Exactly what I was looking for! Thanks so much!

415 posts
    Has referred 10+ members Has sold $250,000+ on Envato Market Has collected 10+ items on Envato Market Elite Author: Sold more than $75,000 on Envato Market
+5 more
unisphere says


Man those 3 first lines of code are much better than the way I’m doing it, hope you don’t mind I use them, they’re delicious :D
Have at it. :-) What are forums for, right?

Thanks man, appreciate it ;)

by
by
by
by
by
by