Replacing plugin templates with your own throws 500 error
-
Hi
Trying to customize some parts of the frontend of theme and successfully added filteradd_filter( 'bp_better_messages_current_template', 'overwrite_bp_better_messages_template', 10, 2 ); function overwrite_bp_better_messages_template( $path_to_template, $template ){ if( $template === 'layout-index.php' ) { $template_path = get_stylesheet_directory() . '/skins/default/plugins/bp-better-messages/views/layout-index.php'; } return $template_path; }
Changes i made appear but any ajax link that i click throws 500 error. Disabled every other plugin, went back to main theme and also tried with twentytwentytwo… nothing works. Can you please check this…
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Replacing plugin templates with your own throws 500 error’ is closed to new replies.