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.

Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting