Home › Forums › Calendar Products › Events Calendar PRO › Enable Comments on Venue Page
- This topic has 12 replies, 2 voices, and was last updated 12 years, 11 months ago by
Barry.
-
AuthorPosts
-
May 6, 2013 at 2:29 pm #47729
Dustin
ParticipantIs there a way to enabled comments on the single venue page (single-venue.php)?
May 6, 2013 at 2:35 pm #47732Barry
MemberHi Dustin – have you tried changing the setting found at Events > Settings > General > Show Comments?
May 6, 2013 at 2:39 pm #47733Dustin
ParticipantYes, that seems to only enabled them on Events, not Venues.
May 6, 2013 at 3:38 pm #47746Barry
MemberOK – if you take a look at Events > Settings > Template can you tell me what Events Template is set to?
May 6, 2013 at 3:41 pm #47750Dustin
ParticipantIt is set to Default Events Template. I have created a new single-venue.php file to make some modifications. Do I need to add any code to this file to enabled comments? I tried adding this at the end but it didn’t change anything.
May 6, 2013 at 3:42 pm #47751Dustin
ParticipantNot sure how to add code here, I’ll try again.
May 6, 2013 at 4:08 pm #47762Barry
MemberHi Dustin – code snippets don’t always work as expected, unfortunately, so it’s best to use an external service such as Pastebin and paste a link in here. Sorry for the inconvenience!
May 7, 2013 at 9:27 am #47835Dustin
ParticipantOk, here’s what I added to single-venue.php. http://pastebin.com/x9idxtxK
May 8, 2013 at 11:12 pm #47989Barry
MemberCan you trying editing the following line in your (custom) ecp-single-template.php:
if(tribe_get_option('showComments','no') == 'yes'){ comments_template(); }And change it to:
if(tribe_get_option('showComments','no') == 'yes' || tribe_is_venue()){ comments_template(); }May 9, 2013 at 9:11 am #48028Dustin
ParticipantI copied the single-venue.php file to my theme-directory\events\ folder. That file didn’t have the line you mention.
Here is what is in the file http://pastebin.com/qLkMxqpn
May 9, 2013 at 10:10 am #48041Barry
MemberRight – but I’m suggesting you edit ecp-single-template.php – not single-venue.php – does that help/clarify things?
May 9, 2013 at 10:19 am #48043Dustin
ParticipantI see. I copied ecp-single-template.php to theme-folder/events/ and made the modification. Didn’t seem to add the comments. Example venue page http://myedmondsnews.com/venue/pancake-haus/
May 9, 2013 at 10:31 am #48049Barry
MemberYou’re still set up so that the Default Events Template is in use right? I’m not sure why that wouldn’t be working … can you try deactivating other plugins and switching to a default, unmodified theme such as Twenty Twelve and test if it works then?
-
AuthorPosts
- The topic ‘Enable Comments on Venue Page’ is closed to new replies.
