• Resolved PaulH wp

    (@paulh-wp)


    Hi, I have been able to integrate the plugin in to my theme but I’m having some issues modifying the eventbrite_get_ticket_form_widget_height() function.

    I was trying to change the values to fix some scroll bars showing up but either I’m missing something or the function is not entirely working.

    The values don’t seem to be used when there is no ticket information or when sales are closed and no cta is used.

    Any ideas what I am doing wrong?

    https://ww.wp.xz.cn/plugins/eventbrite-api/

Viewing 1 replies (of 1 total)
  • Plugin Author Automattic

    (@automattic)

    Hi,

    Yes, because of the way iframes work, that function is basically a hack of values to roughly determine the best height for the iframe (that displays its content without adding a pile of empty space). It’s far from precision science, for sure.

    You can see how the calculation is made, and either override your own version of the eventbrite_get_ticket_form_widget_height() function (it’s pluggable), or you can leave the original function and just filter it’s value on eventbrite_ticket_form_widget_height. If you want all new logic, the former makes more sense; if you just want to add more height to all of them, for example, then the latter will be better for you.

Viewing 1 replies (of 1 total)

The topic ‘eventbrite_get_ticket_form_widget_height()’ is closed to new replies.