Home › Forums › Ticket Products › Event Tickets Plus › Hide number of tickets available
- This topic has 6 replies, 2 voices, and was last updated 5 years, 6 months ago by heartwood.
-
AuthorPosts
-
August 30, 2018 at 1:26 pm #1610099heartwoodParticipant
We don’t want to show the number of available tickets on the /events/ page or on the individual event page. We are using the following CSS, which works for a while, but the remaining number of tickets will consistently reappear after a few days. Is there a solution that is more permanent?
.tribe-tickets-left {
display: none !important;
}.tribe-tickets-remaining {
display: none !important;
}.tribe-events-tickets .tribe-tickets-remaining {
display: none !important;
}Thanks!
September 3, 2018 at 1:01 pm #1612461Geoff B.MemberGood afternoon Glenn and welcome back!
Thank you for reaching out to us.
We are sorry to hear about the number of tickets left constantly reappearing on your website.
I would love to help you with this topic.I took a look at your website and, much to my surprise, I could not find any of the CSS rules kicking in for some reason.
Normally, these should stick. Would you mind telling me where you are adding these? (our plugin’s CSS, your theme’s CSS, in Appearance > Customize > Additional CSS?
Another option would be to tweak and apply the following snippet in the functions.php file of your theme (without the PHP tag at the top): https://gist.github.com/cliffordp/94f37421a00db6f7a96368aa23a8d8bb#file-functions-php
But first, to be extra safe, before making any changes to your functions.php file, you should make a backup of that file.
Best regards,
Geoff B.
September 3, 2018 at 1:07 pm #1612463heartwoodParticipantWe added all that CSS in our theme’s CSS, in Appearance > Customize > Additional CSS. Should we move that to the plugin’s CSS? If so, can you point me to those instructions?
Or, do you think the functions.php addition would be more reliable?
September 3, 2018 at 1:15 pm #1612466heartwoodParticipantHow do we access the CSS for Event Tickets Plus? I hope you can respond soon!
September 4, 2018 at 7:43 am #1613005Geoff B.MemberGood morning Glenn,
Thank you for writing back.
Since you are using Divi, I would recommend using going over to https://heartwoodsoundstage.com/wp-admin/admin.php?page=et_divi_options, scrolling all the way to the bottom of the page and adding the Custom CSS there.
The functions.php is equally as reliable as CSS (provided the CSS is in a spot that “sticks”).
The biggest difference is that this specific functions.php snippet will hide the number of spots left unless it is less than 4 (hence the required tweaking).How do we access the CSS for Event Tickets Plus?
In order to gain full power on your site’s look and feel, I would highly recommend reading the following articles:
- https://theeventscalendar.com/knowledgebase/wordpress-customizer/
- https://theeventscalendar.com/knowledgebase/using-google-chrome-developer-tools/
- https://theeventscalendar.com/knowledgebase/changing-fonts-and-colours/
- https://theeventscalendar.com/knowledgebase/styling-events-widgets/
In other words, once you find the rules you are interested in tweaking, you can simply add them to either:
- The Custom CSS box from the Divi Options menu (as discussed above)
- In the style.css file of your Divi Child Theme (also works great)
Let me know how that goes.
Best regards,
Geoff B.September 4, 2018 at 8:08 am #1613041heartwoodParticipantI can definitely confirm that adding the custom CSS to the Divi Options as
described in your email *does not work* for more than a day or so. All the
CSS solutions we have tried as supplied from you do not work properly.From your communication, it appears the only way to get rid of this
remaining tickets display is through the functions.php modification.
Wouldn’t it be better if you offered that control within your plugin?
Especially since the CSS mods do not work.We’ll try the functions mod…
Thanks.
September 5, 2018 at 9:40 pm #1614835Geoff B.MemberThis reply is private.
September 27, 2018 at 9:35 am #1632346Support DroidKeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Hide number of tickets available’ is closed to new replies.