Home › Forums › Ticket Products › Event Tickets Plus › Hide Number of tickets available
- This topic has 9 replies, 2 voices, and was last updated 6 years, 9 months ago by Jennifer.
-
AuthorPosts
-
June 22, 2017 at 2:50 pm #1301979paulcrawfordParticipant
Hi
This problem seems to come up after each upgrade…
I was using css rule to hide number of tickets on the single events page….tribe-tickets-remaining { display: none !important; }
since todays update the number of tickets remaining now appears on my default list view – how can I hide it?
Thanks
PaulJune 23, 2017 at 12:03 am #1302131JenniferKeymasterHi Paul,
Thanks for reaching out! I’m sorry you’re running into this issue.
Your CSS should work, but make sure you are adding it to the Custom CSS area under Appearance > Customize (if you have one) or in the style.css file of your child theme. This will prevent your changes from being lost during updates, where theme and plugin files are overwritten.
I think there may be a simpler solution for you here though…try going into WooCommerce > Settings > Products > Inventory and changing the Stock display format setting to “Never show quantity remaining in stock”.
Let me know how that works for you!
Thanks,
Jennifer
June 23, 2017 at 1:43 am #1302157paulcrawfordParticipantNo, that didn’t work – the number of tickets left still appears on the events list page
June 23, 2017 at 11:14 pm #1302716JenniferKeymasterHi Paul,
I’m sorry that didn’t work for you…just to make sure I am understanding correctly, you had that CSS working before you updated and then lost it during the update…now you tried adding it back in, and it’s not working?
I took a look at your site, and that CSS should be working for you. Can you tell me where you’re adding it now that it’s not working?
Thanks,
Jennifer
June 27, 2017 at 2:56 am #1308347paulcrawfordParticipantThis reply is private.
June 27, 2017 at 9:35 pm #1309881JenniferKeymasterThanks for sending those links! I took a look at the list view page, and this hid it from there:
.tribe-events-event-cost .tribe-tickets-left {
display: none;
}If that doesn’t work, you can also try adding !important like in the first example.
Let me know how it goes!
June 28, 2017 at 3:53 am #1309996paulcrawfordParticipantYes! That worked – thank you!
Just need some css to hide the “buy Now” button that has appeared on that page since update…June 29, 2017 at 8:54 am #1312032JenniferKeymasterI’m glad that worked for you…sorry the update created a new issue for you! You can hide it with the following CSS:
.tribe-events-event-cost .tribe-button {
display: none;
}or by adding this to your functions.php file:
add_filter( 'tribe_tickets_buy_button', '__return_empty_string' );
I hope that helps!
June 29, 2017 at 12:29 pm #1312479paulcrawfordParticipantThat worked perfectly – thanks for your help
June 30, 2017 at 2:37 pm #1314763JenniferKeymasterPerfect! Glad to hear that worked.
I’ll go ahead and close this thread out, but please feel free to open a new one if you have any further questions!
Thanks,
Jennifer
-
AuthorPosts
- The topic ‘Hide Number of tickets available’ is closed to new replies.