jamarogonzalez Posted February 8 Share Posted February 8 (edited) Hello I am currently trying to customize my site and I like the format of the page and how my pictures are laid out (currently in the Grid:Masonry gallery style) but I do wish I was able to open up the images as its possible in the “Grid:Strips” gallery style format. Is there a way to add code for this? Also I would love to be able to add the bio of the image into the picture when you hover over the picture such as in this photographers site (https://www.calebknueven.com). I also want to disable right click on my photos. My site is https://johanamaro.com Edited February 9 by jamarogonzalez change of header and still no help, added tags Link to comment
tuanphan Posted February 11 Share Posted February 11 (edited) You mean Hover image >> Show an overlay + text over image? Click Image >> Show big image in lightbox? Edited February 11 by tuanphan Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
jamarogonzalez Posted February 11 Author Share Posted February 11 Yes exactly this sorry I'm not very knowledgeable in coding and css. Link to comment
tuanphan Posted February 13 Share Posted February 13 https://johanamaro.com/ To achieve this, you need to enable Gallery Caption + edit some images and add some text first, then we can give code to achieve your request With some bigger version on click, when you edit Section >> It has an option "Lightbox" somewhere, I think it is under Captions option, you can check there Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
jamarogonzalez Posted February 13 Author Share Posted February 13 (edited) Thank you I added the lightbox I had not noticed that before hand. I also turned on captions so that code can be created for the captions. By the way I used your guide on disabling right click which I found on your site. Edited February 13 by jamarogonzalez Adding a comment Link to comment
tuanphan Posted February 15 Share Posted February 15 You can use this code to Website > Website Tools > Custom CSS body.homepage { /* Gallery hover - with No Link */ figure[class*="gallery"]:not(.gallery-slideshow-item) { position: relative; } .gallery-caption { position: static; } /* title */ .gallery-caption p.gallery-caption-content { position: absolute; left: 0; top: 0; right: 0; bottom: 0; display: flex; justify-content: center; align-items: center; z-index: 999; padding: 7%; transition: opacity ease 200ms !important; opacity: 0 !important; pointer-events: none; } figure[class*="gallery"]:hover .gallery-caption-wrapper p.gallery-caption-content { opacity: 1 !important; } /* overlay */ div[class*="-item-wrapper"]:after { background: #f4f6ea; /* overlay color */ content: ""; display: block; position: absolute; top: 0; left: 0; right: 0; bottom: 0; opacity: 0; transition: opacity ease 200ms !important; } figure[class*="gallery"]:hover div[class*="-item-wrapper"]:after { opacity: 0.75; } /* remove gap */ figcaption { padding: 0 !important; } } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
jamarogonzalez Posted February 15 Author Share Posted February 15 (edited) Thank you it worked for giving me the bio on the picture but now the light box doesn't seem to want to work when clicking on the the image. The lightbox setting under Gallery Caption is still turned on. Edited February 15 by jamarogonzalez Link to comment
Solution jamarogonzalez Posted February 17 Author Solution Share Posted February 17 (edited) For anyone looking for the solution This is the custom CSS code. Tuan resolved it privately. Rember this is for version 7.1 body.homepage { /* Gallery hover - with No Link */ figure[class*="gallery"]:not(.gallery-slideshow-item):not(.gallery-lightbox-item) { position: relative; } .gallery-caption { position: static; } /* title */ .gallery-caption p.gallery-caption-content { position: absolute; left: 0; top: 0; right: 0; bottom: 0; display: flex; justify-content: center; align-items: center; z-index: 999; padding: 7%; transition: opacity ease 200ms !important; opacity: 0 !important; pointer-events: none; } figure[class*="gallery"]:hover .gallery-caption-wrapper p.gallery-caption-content { opacity: 1 !important; } /* overlay */ div[class*="-item-wrapper"]:after { background: #f4f6ea; /* overlay color */ content: ""; display: block; position: absolute; top: 0; left: 0; right: 0; bottom: 0; opacity: 0; transition: opacity ease 200ms !important; pointer-events: none; } figure[class*="gallery"]:hover div[class*="-item-wrapper"]:after { opacity: 0.75; } /* remove gap */ figcaption { padding: 0 !important; } } Edited February 17 by jamarogonzalez Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment