<link rel="stylesheet" type="text/css" href="style.php" />
Is this a horrible idea or common solution for WordPress? and calling variables inside the style.php like their example
$var = /*Get the background color*/;
background-color:<?php echo $var; ?>;
It’s a little bit goofy but it works, and it’s safe… https://css-tricks.com/css-variables-with-php/
the issue is that WordPress requires the style.css file anyways, so then you just have like this dead file sitting there.
The CSS Tricks link has some fantastic examples of how to use it actually.
If you are coding custom WP themes, it’s not really necessary though… you can hard code your classes and styles. And for typical WP plebs they all want bloated page builder plugins and stuff now so this solution is rather niche
Enter the destination URL
Or link to existing content