Home › Forums › Ticket Products › Event Tickets Plus › Hide number of tickets left- Featured Event
- This topic has 5 replies, 2 voices, and was last updated 6 years, 4 months ago by Jennifer.
-
AuthorPosts
-
December 14, 2017 at 9:57 am #1405781BrianParticipant
Hello,
I’ve looked through all the threads on this topic, but none of the CSS seems to be working for me. I’m adding it to the child theme style.css. It still shows on the featured event listing
.tribe-events-event-cost .tribe-tickets-left { display: none; } .tribe-events-tickets .tribe-tickets-remaining { display: none !important; }
I’ve tried flushing the cache, and everything else I can think of.
Thanks!
December 15, 2017 at 2:05 pm #1406789JenniferKeymasterHi Brian,
Try adding this:
.tribe-events-list .tribe-events-loop .tribe-event-featured .tribe-events-event-cost span .ticket-cost {
display: none;
}If you don’t want the ticket stock either, just remove the “.ticket-cost” from the end.
Let me know if that works!
Thanks,
Jennifer
December 15, 2017 at 3:04 pm #1406823BrianParticipantHi Jennifer!
Thanks for the code. However it did not work for my need. I guess I need to clarify, I am trying to remove it from my home page where it is being shown by the shortcode:
[tribe_events view=”list” tribe-bar=”false” featured=true]
It did however remove it from the calendar list view. Am I using outdated shortcode, or incorrectly?
Thanks!
December 16, 2017 at 10:18 pm #1407291JenniferKeymasterHi Brian,
Thanks for clarifying!
You are using the shortcode correctly. Another option would be to remove the cost from the template directly. You would need to follow these instructions to copy it into your child theme, where you can then edit it. The template can be found at wp-content/plugins/the-events-calendar/src/voews/list/single-featured.php.
If you would like to stick with CSS, try using this instead:
.tribe-events-list .tribe-events-loop .tribe-event-featured .tribe-events-event-cost .ticket-cost {
display: none;
}I just tested this out on your home page, and it was removing the cost on my end (see screenshot).
Let me know if you have any questions!
Thanks,
Jennifer
December 18, 2017 at 8:26 am #1407888BrianParticipantThank you Jennifer.
The CSS would work, and then it would all of a sudden come back so the issue must be on my end. I removed it from the template file on my child theme.
You can close this thread, thanks for your help! Merry Christmas and Happy Holidays!
December 20, 2017 at 10:26 pm #1410571JenniferKeymasterHi Brian,
I’m glad that editing the template worked for you! I’ll go ahead and close this out, but please feel free to open up a new one anytime!
Merry Christmas!
-
AuthorPosts
- The topic ‘Hide number of tickets left- Featured Event’ is closed to new replies.