Support

Home Forums Community Forum Hide 'Show Details' on embedded ticket selector

Hide 'Show Details' on embedded ticket selector

Posted: September 10, 2016 at 12:35 am

Viewing 2 reply threads


Sydney

September 10, 2016 at 12:35 am

I followed the advice on this post
https://eventespresso.com/topic/ee4-hiding-the-show-details-for-all-ticket-types/

which works to hide the show detials button on any shortcode ticket selector I use on my page.

Several places use the embedded frame which is still displaying a show details button.

eg
<div style="width:100%; height: 500px;">
<iframe src="http://staging.studiokink.com?ticket_selector=iframe&event=27" width="100%" height="100%"></iframe>
</div>

I dont want my customers to be able to see how many tickets are available or sold so either need to remove just that or remove the show details toggle from the embedded ticket selector.


Sydney

September 10, 2016 at 1:42 am

fixed…

just added .tckt-slctr-tkt-sale-dates-sctn {display: none;}

to
/wp-content/plugins/event-espresso-core-reg/modules/ticket_selector/assets/ticket_selector_embed.css


Tony

  • Support Staff

September 10, 2016 at 7:49 am

Hi there,

Although that will work, its not a viable solution as you are modifying core files and with each EE update you will lose those customization.

Rather than doing that you can filter the CSS array that is passed to the template for the iframe and add your own styles there.

I’ve added an example of how to do that to our snippet library here:

https://github.com/eventespresso/ee-code-snippet-library/blob/master/templates/tw_ee_ticket_selector_iframe_custom_css.php

You can change the location that is used for the file if pereferred byt by default it will use /{theme}/espresso/custom_iframe_css.css so you just add that file to that locations and add your styles there after adding the above function to either your themes functions.php file or a Custom Functions Plugin.

The CSS shared above leaves the ‘Show details’ link in place but hides the sale dates within the additional details, is that expected?

Viewing 2 reply threads

The support post ‘Hide 'Show Details' on embedded ticket selector’ 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.

Event Espresso