Removing Comma

Home Forums Calendar Products Events Calendar PRO Removing Comma

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #75708
    digitalbyjess
    Participant

    Hello, I would like to remove the comma in the list display after the comma and before the address. I found a thread that almost answered my question – https://theeventscalendar.com/support/forums/topic/disable-venue-items-on-front-end/#post-58585 – but it also removed the venue name, which I would like to keep. Thanks in advance!

    #75926
    Barry
    Member

    Hi digitalbyjess: your first stop should be the Themer’s Guide (link over on the right under Useful Resources) which outlines the basics of overriding and customizing our views and templates.

    With that done, please set up a custom list/single-event.php template based initially on the original. Locate this line:

    <?php echo implode( ', ', $venue_details) ; ?>

    Change it to:

    <?php echo implode( ' ', $venue_details) ; ?>

    Does that help here?

    #76500
    digitalbyjess
    Participant

    Thank you for the response!

    I followed the Themer’s Guide instructions and created the file wp-content/themes/my-theme/single-event.php. The single-event.php files I used was from the Pro Plugin folder. The same file existed in the standard plugin folder but it did not contain the line of code you referenced.

    The line of code you referenced was not found in the list.php file. It is in the single-event.php page. When I edited the line of code, my single page view changed (not the page I was trying to edit), but the comma persisted on the page I’m trying to edit, the list display page.

    Thanks in advance!

    #76679
    Barry
    Member

    Hi digitalbyjess,

    The line of code you referenced was not found in the list.php file. It is in the single-event.php page. When I edited the line of code, my single page view changed (not the page I was trying to edit)

    It’s possible you misunderstood here: I wasn’t referring to the main single-event.php template nor list.php but list/single-event.php – as found at:

    plugins/the-events-calendar/views/list/single-event.php

    The line in question – at least in the default version of the template that ships with 3.2 – is line 62, if that helps. Sorry for any confusion on that front!

    I followed the Themer’s Guide instructions and created the file wp-content/themes/my-theme/single-event.php.

    So just a note that generally speaking your template overrides ought to be housed within a subdirectory called tribe-events, so if you were editing the main single-event.php template it really ought to live at:

    themes/my-theme/tribe-events/single-event.php

    #76717
    digitalbyjess
    Participant

    I apologize if I didn’t explain myself well, but I followed the instructions exactly and have the same result: the commas is still on the list view page right before the address, example:

    http://denverareamoms.com/events/

    Meanwhile, the single event view page is modified into a different format (I do not want to change that page). Example (although you can’t see the previous format):

    http://denverareamoms.com/event/holiday-ice-palace-with-santa/2013-11-15/

    Thank you!

    #76998
    Barry
    Member

    Hi digitalbyjess,

    The change I suggested – modifying list/single-event.php – will not impact on single event views so I can’t help but suspect you have indeed made a change in the wrong place, which might also explain why you are not seeing any changes in list view.

    We’re generally happy to give a prod in the right direction for customizations like this but ultimately we need to leave it to you to put them in place and figure out the details; in this case I think you require a little more support than we can realistically offer you and so will bow out at this point.

    If you would like, however, we can certainly provide you with a list of freelancers and independent developers who are comfortable working with The Events Calendar and might be able to provide the extra assistance you require here?

    #77413
    digitalbyjess
    Participant

    Thanks Barry. I figured it out. I was calling my daily list of events “list” view, but it was actually “day” view. I needed to create a copy of events-calendar-pro/views/pro/day/single-event.php at my-theme/tribe-events/day/, then make the code edit you referenced ()

    I apologize for the confusion! But I learned a lot about making overrides to the plugin templates and that’s a good thing. Thanks for the help.

    #77443
    Barry
    Member

    Excellent, glad you figured things out and great that you acquired some hands on experiencing of theming The Events Calendar along the way 🙂

    I’ll go ahead and close this thread – of course if there is anything else please don’t hesitate to create new ones as needed.

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Removing Comma’ is closed to new replies.