Skip to content

Commit dde951e

Browse files
authored
Merge pull request #2168 from rtCamp/develop
Remove Forcing Legacy Template [ master ]
2 parents 2a55d56 + f7d6ce5 commit dde951e

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

templates/media/godam-integration.php

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -274,29 +274,3 @@ function enqueue_rtmedia_magnific_popup_script() {
274274
}
275275

276276
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);

0 commit comments

Comments
 (0)