Take your website
To the next level
Discover our newly launched customization services and elevate your web projects to new heights.
Delegate tasks, save time, and unlock the power of professional WordPress outsourcing.

Okay
  Public Ticket #3846483
Altering a plugin in a child theme
Open

Comments

  • bryanmcclure12 started the conversation

    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!

  •  4,923
    Michael replied

    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.

  • bryanmcclure12 replied

    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!

  •  4,923
    Michael replied

    Unfortunately this file can only be located in the plugin, every time you update it you will need to update it manually.