Home › Forums › Main Forum › Theme Suggestion Box › Styled Business Hours Widget
- This topic has 11 replies, 28 voices, and was last updated 6 years, 10 months ago by
Binaya D.
-
AuthorPosts
-
June 3, 2016 at 8:47 pm #17435
Ellen
ParticipantI 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?
June 6, 2016 at 7:03 am #23032Binaya D
ParticipantHi 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
June 6, 2016 at 5:40 pm #23039Ellen
ParticipantSure, 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.pngAttachments:
You must be logged in to view attached files.June 7, 2016 at 11:39 am #23046Binaya D
ParticipantHi 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
June 7, 2016 at 6:21 pm #23049Ellen
ParticipantI’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.
June 8, 2016 at 9:21 am #23055Sushil Adhikari
ModeratorHi 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.zipAttachments:
You must be logged in to view attached files.June 8, 2016 at 5:23 pm #23056Ellen
ParticipantGreat, thank you Sushil.
June 9, 2016 at 7:05 am #23057Binaya D
ParticipantHi Ellen,
You are welcome! 🙂 if you face any problem then please feel free to contact us we are happy to provide solution asap.
Thanks
July 11, 2016 at 10:27 pm #23146Ellen
ParticipantThese 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.pngAttachments:
You must be logged in to view attached files.July 12, 2016 at 8:13 am #23147Binaya D
ParticipantHi 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]
July 12, 2016 at 5:48 pm #23152Ellen
ParticipantI 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.
July 13, 2016 at 5:24 am #17436Binaya D
ParticipantHI 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
-
AuthorPosts
- You must be logged in to reply to this topic.