Custom Styling for Your Decision Trees

customize-blog

Here at Zingtree, we believe flexibility is everything.

The power of your dynamic decision trees – for automating complex, repetitive tasks and business processes – wouldn’t be what it is without Zingtree’s ability to merge seamlessly with your existing tools and practices. At each and every phase of Zingtree’s development, we’ve taken steps – like building WordPress and Zendesk integrations – to ensure maximum compatibility with the tools you’re already using.

But, the ability to work with other platforms is just one aspect of Zingtree’s flexible nature. In this age of design-first thinking and unified branding, Zingtree also gives you the ability to customize the style, look, and feel of your trees for integration into any brand.

For example, you can turn the default Zingtree Panels style into a page that looks like this:

Applying your brand’s styling to your Zingtrees is easy using custom CSS – just follow these steps:

  • Create a Zingtree or choose an editable Zingtree template from the Gallery. Build or edit the tree to your satisfaction.
  • While managing your Tree, click Publish, and use the Advanced options for Zingtree hosted or embedded trees. When you’re done customizing deployment options, copy your iframe code into any webpage or use the Zingtree-hosted link provided.
  • A simple CSS file for Zingtree styling you can easily modify is available here. Download this file, and open it in any text editor. Note that the CSS file has a section for Panels style, and a section for Buttons style.
  • In Panels style, edit the CSS below from the sample file you downloaded, and change the colors to your liking:

     /* node title */
     .panel-primary>.panel-heading {
     /* Set Font Color */
     color: #ffffff;
     /* Set Background Color */
     background-color: #CC1D1D;
     /* Set Border Color */
     border-color: #CC1D1D;
     }

Colors are set using Hex Values (a pound sign ‘#’ followed by 6 characters). Check out this site for Hex color reference.

  • To style the heading text of question nodes in Panels style, edit the CSS below from your .css file:

     /* question area for panels style */
     .list-group-item-question {
     background-color: #CC751D;
     }

  • For Panels style, you can also customize the answers area. You can choose from hundreds of icons in the FontAwesome tool kit and include them in your own trees. Simply head over to FontAwesome, choose the icon you want to use, and copy its Unicode value. Once you find the icon you want and copy its Unicode, you can edit that part of the custom CSS file we’ve been working on:

     /* icon to left of answers in Panels Style */
     .fa-chevron-right:before {
     /* paste your icon’s unicode between the quote marks below */
     content: “\f069”;
     }

  • For Buttons style, you can customize the button colors editing the CSS below:

     /* custom buton color for buttons style */
     .btn-primary {
         color: #ffffff;
         background-color: #CC1D1D;
         border-color: #CC1D1D;
     }

  • Once you’ve styled all the elements of your tree to match your brand, save your .css file, then upload it to a publicly accessible URL on your server. 
  • Open the link to your uploaded CSS file in your browser to test it, and make sure it appears.
  • Go to your tree’s Settings tool, click the Display tab, and look for  Theme / Custom CSS URL:

    Paste the link to your new .css document here. Scroll to the bottom of the page and hit Update Settings.

That’s it – all the power of dynamic decision trees made to blend right into your site or brand’s look and feel. 

Happy Zinging!

1 Comment

  • Marlin says:

    I liked your article on “Custom Styling for Your Decision Trees”. I would like to change the button colors, add button icons and such but following the directions really requires a person to have experience as a graphic artist. The value of your system is that you don’t need that expertise.

    These options would be really good to add within the system and some point.

    FROM ZINGTREE:
    Thanks for the comments Marlin. We do offer some prepackages Themes you can use. And we are planning for a custom theme builder where you can create your own color schemes and other customizations. Stay tuned!

3 Trackbacks

Leave a Reply

Your email address will not be published. Required fields are marked *