andrewintw
Forum Replies Created
-
I found the solution. Actually I just need to override the tribe_tickets_ticket_login_url.
Ref: https://docs.theeventscalendar.com/reference/hooks/tribe_tickets_ticket_login_url/
Hi @abzlevelup, thanks for your reply. I use Oxygen Builder to build my website. Oxygen will ignore the theme setting on wordpress so it seems not work. Do you have any suggestion?
Best,
AndrewI find the root cause in src/Tribe/Tickets.php
Refer the code: https://docs.theeventscalendar.com/reference/classes/tribe__tickets__tickets/get_login_url/
$login_url = get_site_url( null, 'wp-login.php' );
Because I use Ultimate Member to handle login page, so I should use
get_site_url( null, 'login' );
. Is any good way to override the src/Tribe/Tickets.php?After search keyword in the PHP code, I found the root cause @src/admin-views/tribe-options-display.php
@src/admin-views/tribe-options-display.php if ( ! tec_is_full_site_editor() ) { ... $styling_array['tribeEventsTemplate'] = [ 'type' => 'dropdown', 'label' => __( 'Events template', 'the-events-calendar' ), 'tooltip' => __( 'Choose a page template to control the appearance of your calendar and event content.', 'the-events-calendar' ), 'validation_type' => 'options', 'size' => 'small', 'default' => 'default', 'options' => $template_options, ]; }
If tec_is_full_site_editor() return true, then it will not shows “Events template” option in setting page.
I look into the tec_is_full_site_editor(), it actually detect your theme type. Unfortunately, I am using a “block theme” — “Twenty Twenty-Two”.
The “Twenty Twenty-Two” is a block theme, but “Twenty Twenty-One” is not. After change theme to “Twenty Twenty-One”, it is shows the “Events template” option in Display setting page.
You can close the ticket, but here is my suggestion for development.
I highly recommend that you should mention the info in the settings page.
When you use Oxygen builder, oxygen will ignores the choice of theme. All oxygen users just random choose a theme, because the theme will not apply in your site. So the oxygen users will not expect any plugin should detect the theme setting.
So when this problem happened, they didn’t have any hints to lead them to fix problem by change current theme.
- This reply was modified 2 years, 6 months ago by andrewintw.