<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Okay. Great. Thanks. :)<br><br><div><hr id="stopSpelling">Date: Sun, 15 Sep 2013 11:37:35 +0530<br>From: tskk79@gmail.com<br>To: theme-reviewers@lists.wordpress.org<br>Subject: Re: [theme-reviewers] How to Implement CSS Dependant on User Input?<br><br><div dir="ltr">You are allowed to output css code. Create a function and hook it to wp_head.<br></div><div class="ecxgmail_extra"><br><br><div class="ecxgmail_quote">On Sun, Sep 15, 2013 at 11:35 AM, Rohit Tripathi <span dir="ltr"><<a href="mailto:rohitink@live.com" target="_blank">rohitink@live.com</a>></span> wrote:<br>
<blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex;">


<div><div dir="ltr">Most themes implement a functionality, where users are allowed to select link colors, and other features, etc for their themes. But, WordPress requires all stylesheets to be enqueued, and I assume we can not pass .php files in the wp_enqueue_style(); function.<div>
<br></div><div>So, What is the Suitable way to implement this?</div><div><br></div><div>One way would be to create multiple stylesheets, and load the one user has selected. But, what if I want to implement a feature, where user can provide the hex value for the link color. What to do then? I can not write <?php get_option('link_color') ?> in the .css files. I will be forced to hardcode it somewhere in the theme.</div>
                                          </div></div>
<br>_______________________________________________<br>
theme-reviewers mailing list<br>
<a href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a><br>
<a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________
theme-reviewers mailing list
theme-reviewers@lists.wordpress.org
http://lists.wordpress.org/mailman/listinfo/theme-reviewers</div>                                           </div></body>
</html>