Styled Business Hours Widget

Home Forums Main Forum Theme Suggestion Box Styled Business Hours Widget

This topic contains 11 replies, has 28 voices, and was last updated by  Ellen 3 years, 2 months ago.

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #17435

    Ellen
    Participant

    I would like to change the order of the days in the business hours widget to start on Monday instead of Sunday. Where can I do this?

    #23032

    Binaya D
    Participant

    Hi Ellen,

    We are really sorry to inform you that it is really hard to understand your issue, so could you please explain your issue with screenshots as well as please mention the link of your site also, so that it will be easy to both of us to find the solution asap. We hope you can understand.

    We look forward to your respond.

    Thanks

    #23039

    Ellen
    Participant

    Sure, the business is closed on Sundays, so instead of the first thing visitors see is that we are closed, I would like the days of the week to start on Monday at the top and end on Sunday at the bottom. See the attached.

    BusinessHours.png

    Attachments:
    You must be logged in to view attached files.
    #23046

    Binaya D
    Participant

    Hi There,

    It seems that you have forget to mention the site link, so could you please send us and for another support queries please mention the support topic in specific theme name, so that it will be easy to both of us to find the solution asap. Because as you have purchase Premium theme membership we are not able to know that which theme are you talking about. We hope you can understand.

    Thanks

    #23049

    Ellen
    Participant

    I’m using it on several sites. It is the Styled Business Hours widget, using it in the Sleeky Pro theme. I just want the days of the week to start Monday to Sunday top to bottom. There is no link, since if I can’t get it to work Monday through Sunday I will not use the widget.

    #23055

    Sushil Adhikari
    Moderator

    Hi Ellen,

    In order to change the order of day you need to customize the widget_business_hours.php file. We had done customization for you, please find the attached file and place it on following directory overwriting the existing file:

    rootfolder/wp-content/themes/sleeky-pro/sleeky_includes/widgets/widget_business_hours.php

    This changes will be lost whenever you update your theme,

    As widget file is functionality file and not a template file so simply copying it in the child theme with same path structure and changing there will not work. It can be little complex, but what you should do is. In your functions.php file of child theme, copy the whole widget class code that you are willing to edit eg: lavish_Widget_Business_Hours widget class, copy all code of this widget class

    class lavish_Widget_Business_Hours extends WP_Widget {
    function lavish_Widget_Business_Hours() {
    //all code here and make changes as you like
    }
    Rename it to something like lavish_Widget_child_Business_Hours, make your changes there and register the new widget [email protected] here for registering the widgets http://codex.wordpress.org/Function_Reference/register_widget. Now, in Appearance->Widget you will see both widgets from parent theme and the one your created.

    Let us know if you get any problems on this, we will be more than glad to assist you.

    Thanks
    widget_business_hours.zip

    Attachments:
    You must be logged in to view attached files.
    #23056

    Ellen
    Participant

    Great, thank you Sushil.

    #23057

    Binaya D
    Participant

    Hi Ellen,

    You are welcome! 🙂 if you face any problem then please feel free to contact us we are happy to provide solution asap.

    Thanks

    #23146

    Ellen
    Participant

    These changes work great, but I’m now getting an extra


    somewhere. How can I get rid of this?

    http://www.cafemanna2.evhmarketing.com/
    FireShotScreenCapture211-CafeMannaFreshYummyFood-www_cafemanna2_evhmarketing_com.png

    Attachments:
    You must be logged in to view attached files.
    #23147

    Binaya D
    Participant

    Hi There,

    It seems that you have kept the code like below where you have kept the


    tag after Business Hours, so please remove it, or if this is not helpful to you, then please provide us your WP-login details via mail, so that we could fix your issue;

    Business Hours


    We are open for lunch and dinner Monday through Saturday.

    Sunday Closed
    Monday 11:00 AM - 9:00 PM
    Tuesday 11:00 AM - 9:00 PM
    Wednesday 11:00 AM - 9:00 PM
    Thursday 11:00 AM - 9:00 PM
    Friday 11:00 AM - 9:00 PM
    Saturday 11:00 AM - 9:00 PM

    About once a month we offer a special Cooking Class on Sunday afternoon. Contact us for details or visit our Events page.

    Thanks

    Email Address: [email protected]

    #23152

    Ellen
    Participant

    I had made changes to the widget_business_hours.php file, so it isn’t that. After the recent update I’m seeing that horizontal line in several widgets.

    Update: Oops, it’s coming from another plugin. I’ll investigate further and post an answer if it benefits others.

    Update: I don’t know what was causing the


    to display, but ultimately I just ended up using this:

    #widget-business-hours-3 hr {
    display: none;
    }

    May not be the best solution, but it works.

    #17436

    Binaya D
    Participant

    HI Ellen,

    That’s great ! You found the solution by yourself :cheer: if you have any issue in further then please let us know. Have a Good Day !

    Thanks

Viewing 12 posts - 1 through 12 (of 12 total)

You must be logged in to reply to this topic.