Home › Forums › Ticket Products › Eventbrite Tickets › Eventbrite Ticket Box iframe sizing issue
- This topic has 12 replies, 3 voices, and was last updated 10 years, 9 months ago by
Support Droid.
-
AuthorPosts
-
September 6, 2013 at 3:54 pm #64962
stevenmilstein
ParticipantAs per instructions, I added created a functions.php in my child theme, with the following code.
add_filter('tribe_template_factory_debug', 'change_eb_iframe_height');
function change_eb_iframe_height($html) {
if (false === strpos($html, 'eventbrite-ticket-embed')) return $html;
return str_replace('style=\"height:200px;', 'style=\"height:300px;', $html);
}
Unfortunately the “height” tag value is not being replaced. Any Suggestions?
September 9, 2013 at 9:28 am #65129Kelly
ParticipantHi, stevenmilstein. I’m sorry that snippet isn’t working for you. Our testing has found this successful.
Please confirm that the snippet you’re using is exactly what is shown in this post: https://theeventscalendar.com/support/forums/topic/ticket-information-box/#post-63166. I notice that there are differences between the two, so that might be the problem.
Did you have a chance to test in default Twenty Twelve? What behavior are you seeing there?
September 19, 2013 at 11:59 am #66835stevenmilstein
ParticipantHi Kelly,
I tried Twenty Twelve, copy/pasted the code you referenced & received the following error when trying to activate the child theme:
Parse error: syntax error, unexpected '=' in /home/content/49/4147249/html/startupbreakfastclub/wp-content/themes/twentytwelve-child/functions.php on line 6
Thanks for hanging in there!
September 19, 2013 at 2:13 pm #66865Kelly
ParticipantHi, stevenmilstein. Thanks for following up.
It looks like there may be an extra equals sign in the code after “false”. Have you tried using only 2 instead of 3?
Thank you for continuing to troubleshoot this with us!
September 19, 2013 at 5:51 pm #66901stevenmilstein
ParticipantHi Kelly,
I changed the function.php to:
There’s no php parsing errors now but when viewing the page source, I can see the height value has not changed.
Thanks,
StevenSeptember 19, 2013 at 5:52 pm #66902stevenmilstein
Participant
add_filter(‘tribe_template_factory_debug’, ‘change_eb_iframe_height’);function change_eb_iframe_height($html) {
if (false === strpos($html, ‘eventbrite-ticket-embed’)) return $html;
$search = htmlspecialchars('style="height:200px;', ENT_QUOTES, "UTF-8");
$replace = htmlspecialchars('style="height:700px;', ENT_QUOTES, "UTF-8");
return str_replace($search, $replace, $html);
}
September 20, 2013 at 7:43 am #66964Kelly
ParticipantHi, stevenmilstein. I think we’re getting a little far afield now.
If you don’t mind, let’s backup to your first post. Looking again, I see that there are several backslashes there that actually don’t belong. Please use this code and make sure that no backslashes carry over when pasting into your file:
That should do the trick.
September 20, 2013 at 8:54 am #66981stevenmilstein
ParticipantKelly, copy/pasting that code crashes my site – with my theme, as well as, Twenty Twelve. That’s the parsing error I posted here in Sep 19. The problem seems to start with the double quote in “style=”height:200px”.
Regards,
StevenSeptember 20, 2013 at 10:06 am #67016Kelly
ParticipantHi, Steven. I’m sorry, but a colleague noticed that there were curly quotation marks in my original pastebin excerpt. Would you mind trying one more time?
Sorry for the hassle!
September 20, 2013 at 10:08 am #67019Kelly
ParticipantLooking again, I see there was one curly quotation mark that I missed right where you say it had trouble.
If you make sure that’s fixed, hopefully everything will fall into place.
September 20, 2013 at 10:39 am #67024stevenmilstein
ParticipantWoohoo! All better now 🙂
Thanks for your perseverance!September 20, 2013 at 12:13 pm #67048Kelly
ParticipantFantastic! Thank you, Steven!
Since you’re all set, I’m going to go ahead and close this thread. Please start a new topic if anything else comes up!
July 7, 2015 at 6:28 am #980931Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Eventbrite Ticket Box iframe sizing issue’ is closed to new replies.
