Posted: August 6, 2015 at 3:50 pm
I am trying to do two different things. 1. on an event I need to hide one, two or more tickets eg: on http://run.bluemaxcc.org/events/black-and-blue-in-the-lou/ I need to hide the Comped Registration. I have read this is done via CSS: .ee-ticket-comped-registration { But where do I put this and what if I need to hide two. 2. I need the ability of creating a page that has just one ticket price open ie: only the comped registration, so that individuals can go to a specific URL that is not in the nav area and access this ticket price. It has to be part of the main event as I need the reporting combined. Please help. |
|
|
Hi, 1) CSS like that can be used for sure. That CSS can be added to your themes style.css, though in order to preserve the CSS through theme updates we recommend adding it to either: a child themes style.css, your themes CSS options if it has any, or a plugin such as My Custom CSS. If you need to hide others, you would need to find the Class of the ticket via the Inspect Element function of your browser (though normally the class is simply the ticket name in lowercase, with dashes instead of spaces and ee-ticket- before it, e.g. ee-ticket-regular-registration). 2) Not currently possible. We are looking into an option for allowing tickets to be added by URL but this is still some time off and even then I’m not sure it would meet your needs. The only option I can think of is if the registering attendees are also site user. You could use the WP User Integration addon to block access to tickets based on user capability. Of course this depends on how your site is set up. |
I was able to do this, however it is applied to all pages on the site. How do I limit it to only one page? |
|
Hi Robert, you can use a body class for the event: http://cl.ly/image/3t0L2z2p2j2S The event that you shared has a body class of event-12 and I found it by inspecting the page using Safari developer tools. There are other equivalent tools available such as Firebug or Chrome developer tools. Here is the updated CSS to hide this ticket option on only that single event page: .post-12 .ee-ticket-comped-registration { display: none; } — |
|
Thanks that works perfectly. |
|
Great! Glad we could help! Since this topic is resolved, I am going to close it. If you have anymore questions or issues, please start a new topic and we will be happy to help there. 🙂 |
|
The support post ‘Hide a Ticket / Show only 1 Ticket’ 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.