• Resolved garysteel

    (@garysteel)


    I would like to change the hyphen that appears by default in the opening hours time to the word ‘to’. For example change ‘8:00 am?–?6:00 pm’ to ‘8:00 am to 6:00 pm’. Is this possible?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support jaysupport

    (@jaysupport)

    Hi gary,

    There is no option in the plugin to change this. That being said, we’ve built the front end of the plugin using templates that you can modify in a non-destructive (i.e. doesn’t touch the main plugin files and won’t get removed when you update the plugin) manner by creating a copy of the template file in your (child) theme folder. We have more info and examples for this here: https://doc.fivestarplugins.com/plugins/business-profile/developer/templates#helper-functions

    Thread Starter garysteel

    (@garysteel)

    That’s fantastic! Are you able to give me some further guidance on how I can change the – to or between the opening times?

    Plugin Support jaysupport

    (@jaysupport)

    Hi gary,

    The template you want to copy into your child’s theme and modify is “opening-hours.php”. You’d want to edit line 29:

    <span class="bp-time"><?php echo esc_html( bpfwp_get_time_label( $time ) ); ?></span>

    As explained on that documentation page, we use hooks, etc. to populate that span, so what you’d want to do is just replace that with your own code that calls the opening and closing hours. We cannot provide exact code because customization falls outside of the scope of support, because we cannot support it, and also because, if it isn’t something that you’re comfortable figuring out, we suggest not making that kind of modification.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.