Home › Forums › Ticket Products › Event Tickets Plus › Event ticket going full screen
- This topic has 10 replies, 3 voices, and was last updated 9 years, 7 months ago by
Jeanne Nigro.
-
AuthorPosts
-
September 21, 2016 at 6:21 pm #1167201
Jeanne Nigro
ParticipantWhen adding a ticket to a page or post, the ticket row is going full width and too difficult to see or use. See screenshot. Is there a way to adjust the column width so this isnt so wide. Better yet, a shortcode I can add within a presized column.
September 21, 2016 at 6:43 pm #1167204Nico
MemberHi there Jeanne,
Thanks for getting in touch with us! Sorry to hear about this glitch, but I’m sure we can find a solution for it.
Unfortunately there’s no shortcode to get the tickets form to display in a particular place. So first I’ll try to fix this with a CSS snippet, if that’s not possible then I’ll explore other options.
Can you please send me over the URL where I can see this? I inspected your site but couldn’t find the page with the tickets form.
Thanks,
NicoSeptember 21, 2016 at 10:40 pm #1167245Jeanne Nigro
ParticipantI’ve added a ticket to this page
https://jeannenigro.com/unshaken-launch-celebration-teaching/
September 22, 2016 at 11:57 am #1167603Jeanne Nigro
ParticipantAny updates? We have an event starting that we need to sell tickets for and this solution is currently not usable. We may need to get a refund on this plugin add on.
September 22, 2016 at 12:05 pm #1167609Nico
MemberThanks for following up Jeanne!
Hopefully the solution for this is fairly simple. Adding the class et_pb_row to the tickets form makes it fit in the same with as the container above. This can be done via JavaScript (insert the class one the page loads) or by modifying the markup of the form by creating a template override. To decide which solution is best for the site I would like to know if you are using tickets in other places and if so which post types are the tickets in (events, pages, posts, etc?).
Please let me know about it and I’ll send instructions to fix this,
Best,
NicoSeptember 22, 2016 at 12:23 pm #1167621Jeanne Nigro
ParticipantWe are using tickets on the events pages as well as posts and pages. Example, https://jeannenigro.com/event/unshaken-launch-celebration-teaching/
September 24, 2016 at 10:07 am #1168366Jeanne Nigro
Participant? Five days since purchasing this plugin and it still unusable.
September 26, 2016 at 8:47 am #1168747Nico
MemberHey Jeanne,
Sorry for the delay in my reply! I missed this thread on Friday, and as we do not work during the weekends, I’m getting it now.
Try pasting the code below in your theme’s (or child theme’s) functions.php file:
/* Tribe, adjust tickets form width in pages */
function tribe_page_tickets_adjustment() {
?>
<script type="text/javascript">
jQuery(document).ready( function ( ) {if( jQuery('body.page form.cart').length ) {
jQuery('body.page form.cart').addClass('et_pb_row');
}});
</script>
<?php
}
add_action('wp_footer', 'tribe_page_tickets_adjustment');
I tested in my local install and it’s working as expected. I also inspected your site and saw the same use of jQuery so I guess it should work there as well.
Please let me know about it,
Best,
NicoSeptember 26, 2016 at 9:18 am #1168764Jeanne Nigro
ParticipantThis worked. Thanks Nico.
September 27, 2016 at 6:48 am #1169171Nico
MemberStocked to hear Jeanne, thanks for the heads-up 🙂
I’ll go ahead and close out this thread, but if you need help with anything else please don’t hesitate to create a new one and we will be happy to assist you.
Best,
Nico -
AuthorPosts
- The topic ‘Event ticket going full screen’ is closed to new replies.
