Posted: October 19, 2016 at 8:48 am
|
My client has decided they want to sell a few pieces of merchandise, which are not directly linked to any particular event. I also don’t want to go with another selling platform like Woocommerce, because I will end up with two different shopping experiences on the same site, which is awkward. So, my solution is to create events specifically for a piece of merchandise, such as “Teapot”, put them in their own category and display them on a separate page. The remaining problem is how to hide the “details”, since obviously a Teapot does not have beginning dates, ending dates, etc. I have looked at other messages and see how you can hide details with CSS, but that would hide them for ALL events. How can I hide details for specific events or a certain category. I wish this was an option in the shortcode to show or hide details. Any bright ideas would be appreciated. |
Hello, This snippet (https://eventespresso.com/wiki/useful-php-code-snippets/#category-css) in a site specific plugin (https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/) will add the event categories as a body class. You could then assign certain events to a specific category (inspect page to see the specific body class) and then use the body class + specific elements on the page such as the datetimes CSS area with display:none. That will hide the datetimes on only those events so others will not be affected. — |
|
|
Thank you so much. This works perfect, EXCEPT, when the payment is made and we return, on the PDF receipt that is generated, time and date appears. I understand it might be difficult to get rid of that, because at this point, whatever solution will include all events, not just selected ones. But, I thought you might have another bright idea. |
You can create a new custom receipt template for your non-event events, then remove the time and date from their Receipt template. You go to edit the event, then scroll down to Notifications, click on the HTML tab, then next to Receipt, you click on Create New Custom, give it a name, then you can edit that template and remove any mention of times and dates. Then when you add more non-event events, you can re-use that receipt template. |
|
The support post ‘Hiding Details’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.