Title: Format &amp; syntax question
Last modified: October 8, 2016

---

# Format & syntax question

 *  Resolved [tupperlake](https://wordpress.org/support/users/tupperlake/)
 * (@tupperlake)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/format-syntax-question/)
 * Hi – I love your plugin! I’m using as a sidebar widget on my site welldressedfood.
   com.
 * Is there a way to format the text size or spacing of the hours output? I’d like
   to condense with less space between each day. I’m also not sure of the correct
   syntax for conditional colors, etc.
 * The current output is live on my website, and the code in the shortcode widget
   is:
 * 87 Park Street – Tupper Lake, NY
    518-359-5280
 * [mbhi location=”Tupper Lake”]
    [mbhi-is-current=”true”] [mbhi_hours location=”
   Tupper Lake”]
 * Thanks in advance for any assistance!
 * Best, David.

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

 *  Plugin Author [Wombat Plugins](https://wordpress.org/support/users/maartenbelmans/)
 * (@maartenbelmans)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/format-syntax-question/#post-8266484)
 * Hi David,
 * Thanks for your kind words 🙂
 * To get less space between each day, you simply need to style the output with 
   CSS. This code should work for you and can be placed in your styles.css file:
 * `.mabel-bhi-businesshours tr td{padding:0;}`
 * The same goes for conditional coloring. You don’t need extra code, but just CSS
   will do fine. Adding this to your CSS will add a green color to the text when
   you’re open:
 * `.mb-bhi-display.mb-bhi-open{color:green;}`
 * Alternatively, the code below will turn the text red if you’re closed
 * `.mb-bhi-display.mb-bhi-closed{color:red;}`
 * To denote the current day in the opening hour table (for example, turn it in 
   bold), you can use the following CSS:
 * `mbhi-is-current{font-weight:bold;}`
 * As you can see, you only need CSS to achieve what you want:)
 * The widget looks good on your website, nice job! Can I include a link to your
   website in my ‘examples’ section?
 * Let me know if this fixes your problems.
 * Maarten
 *  Thread Starter [tupperlake](https://wordpress.org/support/users/tupperlake/)
 * (@tupperlake)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/format-syntax-question/#post-8278262)
 * Hi Maarten,
 * Thank you for your quick response – your solution worked!
 * Definitely link to our website if you would like!
 * Best, David.

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

The topic ‘Format & syntax question’ is closed to new replies.

 * ![](https://ps.w.org/business-hours-indicator/assets/icon-256x256.png?rev=1551528)
 * [Business Hours Indicator](https://wordpress.org/plugins/business-hours-indicator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/business-hours-indicator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/business-hours-indicator/)
 * [Active Topics](https://wordpress.org/support/plugin/business-hours-indicator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/business-hours-indicator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/business-hours-indicator/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [tupperlake](https://wordpress.org/support/users/tupperlake/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/format-syntax-question/#post-8278262)
 * Status: resolved