Title: [Plugin: OptionTree] Background Option
Last modified: August 20, 2016

---

# [Plugin: OptionTree] Background Option

 *  [eric.w](https://wordpress.org/support/users/ericw-1/)
 * (@ericw-1)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-optiontree-background-option/)
 * When I use `<?php echo(ot_get_option('custom_background_css|background_color'))?
   >` it returns nothing but when I use `<?php echo(ot_get_option('custom_background_css'))?
   >` it returns all the values set through the options page but it returns them
   all with commas. I need to be able to call it without commas or individually.
   Can anyone help me?
 * [http://wordpress.org/extend/plugins/option-tree/](http://wordpress.org/extend/plugins/option-tree/)

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

 *  Thread Starter [eric.w](https://wordpress.org/support/users/ericw-1/)
 * (@ericw-1)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-optiontree-background-option/#post-2985410)
 * I meant `<?php echo(ot_get_option('custom_background_css|background-color')) ?
   >` I tried both just to make sure. Thanks in advance!
 *  [vabmedia](https://wordpress.org/support/users/vabmedia/)
 * (@vabmedia)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-optiontree-background-option/#post-2985603)
 * Hey Eric W.
 * I don’t think you have to call the option in the php file.
    You set up a custom
   background option on the options page, and along with it, you have to set up 
   a css option and add the css code to the css box that was created when you created
   a css option.
 * You also have to create a file called dynamic.css, (call this file from your 
   header.php) so that whatever you write in the css box, will show up on that file
   dynamically, and that will help you set up your background.
 * In the css box in your theme options you would have the following:
    #homelayout{{{
   home_content}} }
 * where home_content is the id name of the background option I(you) set up.
 *  Thread Starter [eric.w](https://wordpress.org/support/users/ericw-1/)
 * (@ericw-1)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-optiontree-background-option/#post-2985604)
 * Hello Vabmedia! Thank you for your response. I guess I am missing something. 
   Tyring to follow your instructions and documentation as well. I have created 
   dynamic.sss and placed this code inside `.all-container {
    {{custom_background}}
 * }` custom_background is the option. I called the stylesheet from header.php I
   also changed permissions on that file to 777. What am I missing?
 * Right now I use a dynamic.php that has worked great. Thats why I was trying to
   call them through php. Here is an example of how I thought it should look. `
 *  <?php { ?>
    <style type=”text/css”> .all-container {
 *  background: <?php echo(ot_get_option(‘custom_background’)) ?>;
    } </style>
 *  <?php } ?>
    `
 * That however, doesn’t work.
 * Any and all help would be greatly appreciated. Thank you!
 * Eric
 *  Thread Starter [eric.w](https://wordpress.org/support/users/ericw-1/)
 * (@ericw-1)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-optiontree-background-option/#post-2985605)
 * last message i meant to say dynamic.css

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

The topic ‘[Plugin: OptionTree] Background Option’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/option-tree_363534.svg)
 * [OptionTree](https://wordpress.org/plugins/option-tree/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/option-tree/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/option-tree/)
 * [Active Topics](https://wordpress.org/support/plugin/option-tree/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/option-tree/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/option-tree/reviews/)

## Tags

 * [background](https://wordpress.org/support/topic-tag/background/)
 * [option](https://wordpress.org/support/topic-tag/option/)

 * 4 replies
 * 2 participants
 * Last reply from: [eric.w](https://wordpress.org/support/users/ericw-1/)
 * Last activity: [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-optiontree-background-option/#post-2985605)
 * Status: not resolved