Title: Theme Toolkit conditionals
Last modified: August 18, 2016

---

# Theme Toolkit conditionals

 *  [Alex Cragg](https://wordpress.org/support/users/epicalex/)
 * (@epicalex)
 * [18 years, 12 months ago](https://wordpress.org/support/topic/theme-toolkit-conditionals/)
 * Just adding the theme toolkit to a new theme im creating, and a question has 
   arisen.
 * Can i define one output, depending on another? In practical terms, i mean if 
   someone chooses the blue or purple footer, can i automatically change the font
   color to white.
 * the function ive made is this:
 *     ```
       function mytheme_footer_color() {
                 global $mytheme;
                 if ( $mytheme->option['footercolor'] ) {
                     print '#footer {background: ';
                     print $mytheme->option['footercolor'] ;
                     print " ;}\n";
                 }
       }
       ```
   
 * So i want to say `if $mytheme->option['footercolor'] = #244D83 or #A20675, then
   print color:#FFFFFF;, else print color:#595959;`
 * but i dont know where in the existing function to put this, or how to write it
   correctly.
 * Thanks for any help.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Chris_K](https://wordpress.org/support/users/handysolo/)
 * (@handysolo)
 * [18 years, 12 months ago](https://wordpress.org/support/topic/theme-toolkit-conditionals/#post-566531)
 * Out of curiosity, what’s “theme toolkit”?
 *  Thread Starter [Alex Cragg](https://wordpress.org/support/users/epicalex/)
 * (@epicalex)
 * [18 years, 12 months ago](https://wordpress.org/support/topic/theme-toolkit-conditionals/#post-566631)
 * sorry, thought people would know about it.
    [http://planetozh.com/blog/my-projects/wordpress-theme-toolkit-admin-menu/](http://planetozh.com/blog/my-projects/wordpress-theme-toolkit-admin-menu/)
   it basically lets you add an admin page for your theme when someone activates
   it for the blog.
 * any ideas how i can achieve what i wanted?
 * thanks

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Theme Toolkit conditionals’ is closed to new replies.

 * 2 replies
 * 2 participants
 * Last reply from: [Alex Cragg](https://wordpress.org/support/users/epicalex/)
 * Last activity: [18 years, 12 months ago](https://wordpress.org/support/topic/theme-toolkit-conditionals/#post-566631)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
