Hi @luserl,
Right now this can only be done by editing a template file of the plugin but I think it’s better if I add an option into the settings panel. I’ll add this into the next update.
If you wish to change this right now, please let me know and I’ll give you the instructions to edit the file.
If you wish to change this right now, please let me know and I’ll give you the instructions to edit the file.
@alessandrotesoro , It would be nice. 🙂
-
This reply was modified 4 years, 9 months ago by isnulled.
Hi @luserl
1) Read here how to customize templates https://docs.posterno.com/article/545-templates-customization
2) Once you’ve understood where to place files, copy the file business-hours.php from the Posterno plugin’s subfolder templates/listings/
3) Locate line 59 highlighted here https://github.com/Posterno/posterno/blob/master/templates/listings/business-hours.php#L59
4) Replace this code
<td><?php echo wp_kses_post( $set->to_string() ); ?></td>
with this
<td><?php echo wp_kses_post( $set->to_string('H:i') ); ?></td>
5) Save the file.
Hope this helps 🙂
But in the submitting form it offers to choose AM/PM. 🙁 Any way to disable this?
Hi @luserl
The modification above will only change the time displayed within the single listing page.
In order to change the format on the submission form I’ll have to make changes to the js files and only I can do those changes. Rest assured this feature will be added into the next update ( v1.1.0 ) which is going to be released next week.
This week there will be an update too but it’s only bug fixes/support for the first premium addon.
Hi @luserl,
I’ve just released a new update with support for this feature. Go in Settings -> Posterno -> Listings -> Business hours and enable the option “24h format”.
Enjoy 🙂
Thats what i needed! Thank you!