• Resolved francoc30

    (@francoc30)


    I have to make a slight change in Classes/em-event-post.php, so Elementor can work with EM. I don’t want the change being overwritten every time I update EM. I understand for template file changes we can copy the file to the theme folder using the same directory structure as that of the original, as per documentation. Can I do the same with Classes/em-event-post.php? If not, what would be a better way to achieve my goal?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    Hi,

    Editing core files is not recommended and at the moment it’s not possible to override classes like template files.

    Thread Starter francoc30

    (@francoc30)

    Thanks for the reply. Is there an easier way to make EM works with Elementor? Or is there a workaround?

    Plugin Support angelo_nwl

    (@angelo_nwl)

    can I know which part in classes/em-event-post.php you’ve wanted to change in particular?

    Thread Starter francoc30

    (@francoc30)

    I am not a web developer. I got this information from a user in this support forum. The added codes are in the else statement. The function starts at line 141. It would be nice to incorporate this in the next release. Thanks.

    if( !empty($_REQUEST[‘preview’]) ){
    //we don’t do extra checks here because WP will have already done the work for us here…
    $EM_Event->post_content = $post->post_content;
    $EM_Event->post_content_filtered = $post->post_content_filtered;
    }
    else
    {
    $EM_Event->post_content = $content;
    }

    Plugin Support angelo_nwl

    (@angelo_nwl)

    Thanks, I’m going to let the Devs know about this.

    Thread Starter francoc30

    (@francoc30)

    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Change in Classes/em-event-post.php’ is closed to new replies.