Skip to content

Instantly share code, notes, and snippets.

@yousufansa
Created December 1, 2020 05:55
Show Gist options
  • Select an option

  • Save yousufansa/fa6553ac7d8c4f32017efaaa8a6a8e9d to your computer and use it in GitHub Desktop.

Select an option

Save yousufansa/fa6553ac7d8c4f32017efaaa8a6a8e9d to your computer and use it in GitHub Desktop.
Vodi - Toggle the description and short description position on the single movie v7
if ( ! function_exists( 'vodi_toggle_single_movie_v7_desc_and_short_desc_hooks' ) ) {
function vodi_toggle_single_movie_v7_desc_and_short_desc_hooks() {
if ( vodi_get_single_movie_style() == 'v7' ) {
remove_action( 'masvideos_single_movie_summary', 'masvideos_template_single_movie_short_desc', 25 );
remove_action( 'masvideos_after_single_movie_summary', 'vodi_template_single_movie_details', 60 );
add_action( 'masvideos_single_movie_summary', 'vodi_template_single_movie_details', 25 );
add_action( 'masvideos_after_single_movie_summary', 'masvideos_template_single_movie_short_desc', 62 );
}
}
}
add_action( 'masvideos_before_single_movie', 'vodi_toggle_single_movie_v7_desc_and_short_desc_hooks', 20 );
.single-movie__content .movie__short-description{
display: block;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment