Eventbrite Ticket Box iframe sizing issue

Home Forums Ticket Products Eventbrite Tickets Eventbrite Ticket Box iframe sizing issue

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #64962
    stevenmilstein
    Participant

    As 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?

    #65129
    Kelly
    Participant

    Hi, 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?

    #66835
    stevenmilstein
    Participant

    Hi 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!

    #66865
    Kelly
    Participant

    Hi, 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!

    #66901
    stevenmilstein
    Participant

    Hi 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,
    Steven

    #66902
    stevenmilstein
    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);
    }

    #66964
    Kelly
    Participant

    Hi, 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:

    http://pastebin.com/bzgTR1xu

    That should do the trick.

    #66981
    stevenmilstein
    Participant

    Kelly, 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,
    Steven

    #67016
    Kelly
    Participant

    Hi, 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?

    http://pastebin.com/bzgTR1xu

    Sorry for the hassle!

    #67019
    Kelly
    Participant

    Looking 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.

    #67024
    stevenmilstein
    Participant

    Woohoo! All better now 🙂
    Thanks for your perseverance!

    #67048
    Kelly
    Participant

    Fantastic! 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!

    #980931
    Support Droid
    Keymaster

    This 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.

Viewing 13 posts - 1 through 13 (of 13 total)
  • The topic ‘Eventbrite Ticket Box iframe sizing issue’ is closed to new replies.