Styling Video Titles
-
If you modify line 1602 in ./lib/core.php it would really help with being able to style the video gallery.
My patch – adds “class video-gallery-title” to video titles:
$out .= '<br clear="all"/><div style="text-align:center;width:'.$thumb_width.'px;" class="video-gallery-title">'. stripcslashes($current_video_title).'</div><div class="clear"></div></div>';
Prior code:
$out .= '<br clear="all"/><div style="text-align:center;width:'.$thumb_width.'px;">'. stripcslashes($current_video_title).'</div><div class="clear"></div></div>';
Currently I cannot prevent video gallery wrapping issues when I have long and short titles mixed. By adding the class to the title div I can now use this rule to style my gallery:
div.video-gallery-title {
display: inline-block;
height: 120px;
}You can see how my modified code + CSS rule looks at the bottom of this page:
https://www.charlestonsw.com/support/documentation/store-locator-plus/Prior to adding that class it was stacking videos like this due to forced wrapping:
[vid1][vid2][vid3][vid4]
[vid5] [vid6]
[vid7]
[vid8]
- The topic ‘Styling Video Titles’ is closed to new replies.