Ok, I got the solution but it requires to modify module template files. Please remember that you will need to apply it every time you will decide to update Image Show module.
Please edit the following file:
modules/mod_image_show_gk4/styles/gk_storefront/view.php
and find this block of code (around 62 line):
- Code: Select all
<figure data-url="<?php echo $path; ?>" data-link="<?php echo $link; ?>" data-zindex="<?php echo $i+1; ?>" data-title="<?php echo $title; ?>">
<figcaption>
<?php if($this->config['config']->gk_storefront->gk_storefront_show_title_block && $title != '') : ?>
<h2><?php echo $title; ?></h2>
<?php echo $content; ?>
<?php endif; ?>
</figcaption>
</figure>
Now to be able to add additional overlay you need to add another wrapping element:
- Code: Select all
<figure data-url="<?php echo $path; ?>" data-link="<?php echo $link; ?>" data-zindex="<?php echo $i+1; ?>" data-title="<?php echo $title; ?>">
<figcaption>
<div class="customoverlay">
<?php if($this->config['config']->gk_storefront->gk_storefront_show_title_block && $title != '') : ?>
<h2><?php echo $title; ?></h2>
<?php echo $content; ?>
<?php endif; ?>
</div>
</figcaption>
</figure>
Now with this additional element all what is left is to give it some styling:
- Code: Select all
.gkIsWrapper-gk_storefront .customoverlay {background: rgba(255,255,255,0.5); padding: 50px; display: inline-block}
You can adjust rgba values to give it some tint or more transparency and padding value to give some spacing around text elements.