I'm trying to get the title of my event to link directly to the event site I've linked to rather than one more step to the interior page.
Through my research, I'm attempting to create an altered version of the title.php file in the file structure wp-content/plugins/the-events-calendar/src/views/v2/list/event/title.php
My goal is to change the code in the document from
This is my first time trying to customize a plugin. Thank you for pointing out where I went wrong. Can you suggest the correct place/file structure to put this customization so that when plugin updates occur, I won't lose my adjustments?
Hello,
I'm trying to get the title of my event to link directly to the event site I've linked to rather than one more step to the interior page.
Through my research, I'm attempting to create an altered version of the title.php file in the file structure wp-content/plugins/the-events-calendar/src/views/v2/list/event/title.php
My goal is to change the code in the document from
href="<?php echo esc_url( $event->permalink ); ?>"
to
href="<?php echo tribe_get_event_website_url(); ?>" target="_blank"
I've done so and uploaded that into the child theme folder in the file structure
wp-content/themes/thegem-elementor-child/the-events-calendar/src/views/v2/list/event/
I'm guessing I've done something incorrectly in this process as it appears that it's still pointing to the original plugin file.
Can you assist me in what file directory in my child theme that I would put this new plugin file with the customization?
Also, can you let me know if the code is correct? Though this might be beyond your scope.
Thank you!
Hi,
You uploaded this file to the theme, not the plugin. This file in the theme has no effect on the file in the plugin.
This is my first time trying to customize a plugin. Thank you for pointing out where I went wrong. Can you suggest the correct place/file structure to put this customization so that when plugin updates occur, I won't lose my adjustments?
Thank you!
Unfortunately this file can only be located in the plugin, every time you update it you will need to update it manually.