File tree Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Original file line number Diff line number Diff line change @@ -274,29 +274,3 @@ function enqueue_rtmedia_magnific_popup_script() {
274
274
}
275
275
276
276
add_action ( 'wp_enqueue_scripts ' , 'enqueue_rtmedia_magnific_popup_script ' , 20 );
277
-
278
- /**
279
- * Force BuddyPress Legacy Templates for Godam Theme
280
- *
281
- * Overrides BuddyPress template pack selection to use Legacy templates instead of Nouveau.
282
- * This resolves compatibility issues between Nouveau's CSS styling and rtMedia video players
283
- * in activity feeds, ensuring proper video controls and theme integration.
284
- *
285
- * Legacy templates provide better plugin compatibility and cleaner integration with
286
- * Godam's custom styling without CSS conflicts from Nouveau's theme-specific overrides.
287
- */
288
- function override_bp_template_pack () {
289
- // Force legacy template pack
290
- if (function_exists ('bp_register_template_stack ' )) {
291
- // Remove nouveau template locations if function exists
292
- if (function_exists ('bp_nouveau_theme_compat ' )) {
293
- remove_action ('bp_init ' , 'bp_nouveau_theme_compat ' , 1 );
294
- }
295
-
296
- // Force legacy template pack
297
- add_filter ('bp_get_theme_package_id ' , function ($ package_id ) {
298
- return 'legacy ' ;
299
- }, 999 );
300
- }
301
- }
302
- add_action ('bp_loaded ' , 'override_bp_template_pack ' , 5 );
You can’t perform that action at this time.
0 commit comments