Okay
  Public Ticket #2214914
Custom Iconbox Widget
Closed

Comments

  •  2
    Alex started the conversation

    I am interested in changing the Iconbox widget in the header on the right to show today's hours instead of static hours. I am familiar with PHP and have written a script that will echo the string I want, but where can I find the code for the iconbox so I can make a custom iconbox widget? Or do you have a better solution for displaying dynamic data in this area?

  •  1,715
    Barry replied

    Hi Alex,

    You can change these details in the header by navigating to Appearance -> Widgets. On the right side of the screen you will see the "Header" panel. If you click on this it will open were you will see 4 "QT: Icon Boxes".

    By clicking the "QT: Icon Boxes" you can easily change the content without using any code.

    Hope this helps.

    Best regards,
    Barry
    QreativeThemes.com  |  WordPress Themes

  •  2
    Alex replied

    This does not address my concern. Changing the text this way is fine if you have the same hours everyday. The default is "Mon - Friday: 8AM - 5PM". Except my hours are different every day and I do not want to put a long list of hours for each day. Instead, if today is Thursday, I would like it to say "Closed" and if it's Friday, it will say "9am - 2pm" etc. It will change depending on the day of the week. The title of the widget will read "Today's Hours". Here is a pastebin for a custom widget I programmed but I want to make sure there isn't an easier way. I also want the widget to appear in the same style as the other QT boxes. https://pastebin.com/dB7LWbWg

  •   Barry replied privately
  •  2
    Alex replied

    Excellent, this worked well. Thanks.

  •  1,715
    Barry replied

    You're welcome!

    If you have any other questions please let me know.

    Best regards,
    Barry
    QreativeThemes.com  |  WordPress Themes