Cool Video Gallery
[resolved] reduce font size of description below thumbnail (3 posts)

  1. gauravchand
    Posted 3 years ago #

    How can I reduce font size of description below the thumbnail?

    Also how can I remove it completely?

    How can I have 3 thumbnails per line?

    Is there pagination?



  2. judetheobscure
    Posted 3 years ago #

    I would like this too - posted a thread 6 days ago but no reply so far.

  3. gauravchand
    Posted 3 years ago #

    I have found a solution. Try at your own risk... Backup the file before you make any changes.
    In cool-video-gallery/lib/core.php

    Look for:

    if($options['cvg_description'] == 1)
    		    		$out .= '<br clear="all"/><div style="text-align:center;width:'.$thumb_width.'px;">'. stripcslashes($video->description).'</div><div class="clear"></div></div>';

    To change the font size I have added: font-size:10px
    Also, I have increased the height of the area for the text by making it the same height as the thumbnail (height:'.$thumb_height.'px;). Height and width of thumbnail are set thru the control panel.

    Here is the revised code I am using:

    if($options['cvg_description'] == 1)
    		    		$out .= '<br clear="all"/><div style="text-align:center;font-size:10px;width:'.$thumb_width.'px;height:'.$thumb_height.'px;">'. stripcslashes($video->description).'</div><div class="clear"></div></div>';

    By increasing the size of the thumbnail to 150 x 150 from the control panel you can make it display 3 videos per row. This will probably require recreating thumbnail images.

    As of now this solution is working for me. Backup core.php before you make changes. Hopefully this does not affect anything else in the plugin.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Cool Video Gallery
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic