• Resolved mlipenk

    (@mlipenk)


    Is it possible to simply display the caption all the time, centered in the middle of the image just like the default, without having to mouse hover-over for it to appear? I don’t mind the image hover effects, but in the case of linking to other URLs (ie essentially making the images a grid-menu)… it would be nice if a text caption could be displayed all the time, so users can see at-a-glance the captions. Am I missing a setting somewhere?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author rameez_iqbal

    (@rameez_iqbal)

    Hi,

    Can you please provide url and I will send you custom css code to fix it.

    Regards

    Thread Starter mlipenk

    (@mlipenk)

    For others interested in allowing the caption to display all the time… it will require adding some CSS in the “fgg.css” file in /css/ and also an addition to the “settings_box.php” file in /temp/ of the plugin contents. This assumes you have access via FTP to publish your changes or will re-upload an edited local plugin zip file via the plugins admin of WP. It also assumes that any future updates to the plugin, which you choose to accept, will over-write your own changes. Keep notes of your changes and backups of the files.

    To get an option for what I’ll call “Static Caption Image Hover”

    In the “fgg.css” file around line 60 and after the “.no-effect” classes, add the following css:

    /*Added for static caption, removes visibility: hidden; gives a normal image color*/
    .fancy-grid-gallery-wrap .image-caption-box .static-caption-image-hover {
    display: block;
    top: 0;
    -webkit-transition: none;
    transition: none;
    background-color: rgba(0,0,0,0) !important;
    }
    /*Added for static caption image hover:*/
    .fancy-grid-gallery-wrap .image-caption-box:hover .static-caption-image-hover {
    visibility: visible;
    background-color: rgba(0,0,0,0.5) !important;
    }

    Note, the name of the last class “static-caption-image-hover”. You will need this for the “settings_box.php” file.

    Now, in the “settings_box.php” file… around line #6 where the wcp_classes array items are specified… insert a new array item: ‘static-caption-image-hover’, NOTE: this matches the name of the class, but without the preceding “.”

    It should look similar to:
    $wcp_classes = array(
    ‘static-caption-image-hover’,
    ‘no-effect’,
    etc.

    Save these two edited files and re-publish via FTP or zip the edited plugin and re-upload in WP. Make sure the plugin is activated. The plugin should now display an option in the settings > Hover Effect for “Static Caption Image Hover”. This displays a static caption visible all the time, not just on hover, but the image will have a darker opacity on hover.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Display caption all the time?’ is closed to new replies.