• Resolved Ithril

    (@ithril)


    Hello guys, is there a way to show images with a transparent black background behind the image?? I would like to do something like the examples on fancybox as you can see there when you click on an image it overlays over the page. I would like to have the same effect on the page i’m working on. Thanks in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Edit class-fire-ressources.php and add 'overlayOpacity' : '0.3' to the Fancybox options (which are at the bottom). Remember to add a comma at the end of the second to last line. Change 0.3 to be the darkness you want.

    Thread Starter Ithril

    (@ithril)

    Thanks for the info, but 0.3 opacity just makes it looks more transparent, i found that increasing that value it goes better. Also i found the code to change the color, thank you so much for pointing me to the right file.

    If anyone else want to know how to do it just put the code below in class-fire-ressources.php (ofc in a child theme).

    ‘overlayShow’ : true, //enables overlay
    ‘overlayOpacity’ : ‘0.6’, // overlay opacity
    ‘overlayColor’ : ‘#000000’, //overlay color

    Oops, yes, the other two were vital too! Sorry I forgot them, but glad you worked it out anyway ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fancybox Images’ is closed to new replies.