Loading...
 
Features / Usability

Features / Usability


Re: Dynamically changing a box bg color

posts: 3665 United States

I believe the BOX plugin uses the .cbox style. You could use the $prefs.style variable to check the current theme, then modify the CSS as needed.

Something like this, added to the Custom content should work:

Copy to clipboard
{if $prefs.style="five-alive"}{literal}style type="text/css">.cbox {background:#ccc;color:#000}{/literal}{/if}

 

Obviously, change the backround and color to suit your needs.

HTH,

- Rick  |  My Tiki Blog |  My Tiki UserPage

Why be a dummy? Get smarty! TikiForSmarties.com
Tiki for Smarties, your source for the best (and only) Tiki books, guides, and tutorials.

 

There are no comments at this time.