Home › Forums › Calendar Products › Events Calendar PRO › Removing Comma
- This topic has 7 replies, 2 voices, and was last updated 12 years, 5 months ago by
Barry.
-
AuthorPosts
-
November 11, 2013 at 6:43 pm #75708
digitalbyjess
ParticipantHello, 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!
November 12, 2013 at 3:31 pm #75926Barry
MemberHi 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?
November 14, 2013 at 10:51 am #76500digitalbyjess
ParticipantThank 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!
November 15, 2013 at 9:29 am #76679Barry
MemberHi 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
November 15, 2013 at 1:06 pm #76717digitalbyjess
ParticipantI 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!
November 18, 2013 at 12:32 pm #76998Barry
MemberHi 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?
November 19, 2013 at 8:47 am #77413digitalbyjess
ParticipantThanks 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.
November 19, 2013 at 9:33 am #77443Barry
MemberExcellent, 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.
-
AuthorPosts
- The topic ‘Removing Comma’ is closed to new replies.
