Created
December 1, 2020 05:55
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .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