Support

Home Forums Event Espresso Premium How do I hide venue's category on a event single page?

How do I hide venue's category on a event single page?

Posted: April 10, 2018 at 2:48 pm


Smartycat1

April 10, 2018 at 2:48 pm

If a venue has a category, (which we have for admin organizational purposes only), the category detail (in this case “External Registration”) displays underneath the Venue name within the venue details. How do I have only this data not display, but keep the other venue details (name address, description)?

https://smartycat.tarahollander.com/programs/winter-2018-junior-scientists-lab-grades-1-5-clark/

In the content-espresso_venues-details.php file I see this:

<?php espresso_venue_categories( $post->ID, TRUE, TRUE ); ?>

Could it be something in there?


Tony

  • Support Staff

April 11, 2018 at 4:04 am

content-espresso_venues-details.php is used for the Espresso Venues output, from your example that’s here:

https://smartycat.tarahollander.com/venues/clark-nj/

This output: https://smartycat.tarahollander.com/programs/winter-2018-junior-scientists-lab-grades-1-5-clark/

Is an event that includes venue details, for that you need content-espresso_events-venues.php

Also, are you copying those template files to your themes root directory?


Smartycat1

April 11, 2018 at 11:35 am

Sorry I don’t quite understand your reply. Please take a look at this screenshot and maybe my question and problem I need to resolve will be more clear.

This “category” for a venue does not display on the venue page. It is displaying on single event pages that have a venue with that venue category.

https://www.dropbox.com/s/vdtiw6gcsl4nms8/Screen%20Shot%202018-04-11%20at%2010.31.04%20AM.jpg?dl=0

So far, any event espresso files I’ve changed I placed in my child theme directory:
content-espresso_venues-details.php
content-espresso_venues.php
functions.php
single.php

Please let me know what needs to be done to fix this. Thanks!


Tony

  • Support Staff

April 11, 2018 at 1:30 pm

content-espresso_events-venues.php is the file you need to edit – http://take.ms/lyQc3g

So far, any event espresso files I’ve changed I placed in my child theme directory:
content-espresso_venues-details.php
content-espresso_venues.php

Those template files are used when you are viewing the venue post.

You are viewing the event post, so you need to edit the template part used on espresso_events, which is the above template.

You must be logged in to reply to this support post. Sign In or Register for an Account

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: publish

Updated by  Tony 1 week, 6 days ago ago

Topic Tags

Tagged: ,

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!