• Resolved tupperlake

    (@tupperlake)


    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

    (@maartenbelmans)

    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

    (@tupperlake)

    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.