Support » Plugin: The Events Calendar » How I replaced hyphen with en-dash in widget ranges

  • Resolved kerryveenstra


    Should one use a hyphen in a date range? Should one use an en-dash? It depends on the style guide that your organization has adopted. I use an en-dash, and so here’s how I quickly replaced the hyphens in the Events List widget with en-dashes. (I didn’t try to perform a substitution over the entire plugin.)

    1. Copy
    2. Edit
      and replace
      <?php echo tribe_events_event_schedule_details(); ?>
      <?php echo str_replace('-', '&ndash;', tribe_events_event_schedule_details()); ?>

    References: and

Viewing 1 replies (of 1 total)
  • Plugin Author leahkoerper


    Modern Tribe Support Rep

    Hi kerryveenstra,

    Thanks so much for posting your solution here! Hopefully that will be helpful for other folks.


Viewing 1 replies (of 1 total)
  • The topic ‘How I replaced hyphen with en-dash in widget ranges’ is closed to new replies.