This is intended for someone using a child theme and is happy adjusting code / playing with code.
First off you need to find the work hours template file, it’s located in Voxel >> Templates >> Widgets (it’s called work-hours.php). Then follow these steps:
1. Copy that file into the same hierarchy of your child theme (Child Theme >> Templates >> Widgets) – you will need to create the folders 2. Once the file is in there, open it and then find line 79 3. That is currently (v 1.5.2) a single
opening tag. 4. Change that for the HTML below 5. Once that is saved, copy the php code below for the functions.php and put it in there 6. Copy the CSS below into your child theme or into the regular wordpress CSS section, but be sure to change the colours to match your branding.
HTML Code SnippetOn the page you want this to appear, add an HTML widget (FREE) and paste the code in there.
Instructions
This is the code to replace at line 79 (currently) of the work-hours.php file you have copied across to your child theme
PHP Code SnippetAfter installing a child theme, navigate to Appearance > Theme Editor > functions.php and paste at the bottom of the input.
Instructions
Here is the code to go into functions.php
// Add a CSS class for highlighting today's day in the work hours table. add_filter('body_class', function($classes) { $classes[] = 'highlight-today'; return $classes; });