Enqueue Custom Styles for GoDAM Video Player
The godam_player_enqueue_styles hook lets developers load and enqueue custom styles for GoDAM video player, enabling complete visual customization. It’s ideal for adding custom skins, modifying player controls, or aligning the player’s design with your theme. If you want to customize the player from the GoDAM video settings itself, please refer to the GoDAM video player customization documentation.
Hook: godam_player_enqueue_styles
Usage Example
add_action( 'godam_player_enqueue_styles', function () {
wp_enqueue_style(
'my-custom-godam-skin',
get_stylesheet_directory_uri() . '/css/godam-skin-custom.css',
[],
filemtime( get_stylesheet_directory() . '/css/godam-skin-custom.css' )
);
} );
In this example, a custom skin located in your theme’s /css/ directory is enqueued and applied globally to all instances of the GoDAM player.
When It Runs
This hook is fired during the wp_enqueue_scripts and admin_enqueue_scripts phases meaning:
- Styles enqueued here are applied both in frontend and block editor.
- You can add conditional logic to restrict enqueues to frontend only if needed.
Hook Signature
do_action( 'godam_player_enqueue_styles' );
No parameters are passed to this hook.
Common Use Cases
- Enqueue a custom player skin from your theme or child theme.
- Load theme-specific tweaks for player spacing, buttons, or overlays.
- Add font styles or animations for interactive player elements.
