ConnorMcLarenPhotography Posted September 24, 2023 Posted September 24, 2023 Hello, I have a portfolio on my galleries page. I'm trying to have a selection of my favourite portfolios on my homepage but cannot work out how they would link to the same place without having to build two pages exactly the same. I chose portfolios rather than just using images with a link as I wanted the text and darken when you hover the mouse over the top? Any help is much appreciated
tuanphan Posted September 27, 2023 Posted September 27, 2023 With Homepage, you can use Gallery Section Grid, then we can give code to make text darken when hover. What do you think? If you can't make it work, let me know, I will do a quick guide in comment. 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!)
ConnorMcLarenPhotography Posted October 13, 2023 Author Posted October 13, 2023 Yes code would be very helpful, I want the picture to darken and light text appear when you hover over the image. That would be great, thank you
tuanphan Posted October 15, 2023 Posted October 15, 2023 On 10/13/2023 at 9:34 PM, ConnorMcLarenPhotography said: Yes code would be very helpful, I want the picture to darken and light text appear when you hover over the image. That would be great, thank you What is site url? 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!)
ConnorMcLarenPhotography Posted October 20, 2023 Author Posted October 20, 2023 https://www.connormclaren.co.uk
tuanphan Posted October 23, 2023 Posted October 23, 2023 On 10/20/2023 at 3:49 PM, ConnorMcLarenPhotography said: https://www.connormclaren.co.uk Thank you. You mean change 9 images under this section to custom urls? 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!)
ConnorMcLarenPhotography Posted October 23, 2023 Author Posted October 23, 2023 Yes I’d like to be able to make those lead to the same pages as the ones in the galleries page so that I don’t have to duplicate pages. Either the link on those or if it’s easier I can change to regular pictures and then just need the code for the hover effect of darken and light text same as what is on the portfolio?
tuanphan Posted October 27, 2023 Posted October 27, 2023 On 10/23/2023 at 4:20 PM, ConnorMcLarenPhotography said: Yes I’d like to be able to make those lead to the same pages as the ones in the galleries page so that I don’t have to duplicate pages. Either the link on those or if it’s easier I can change to regular pictures and then just need the code for the hover effect of darken and light text same as what is on the portfolio? Yes. Use Gallery will be easier. You can share link to page where you use gallery page, we can give code to achieve hover (If you use Gallery Section Grid, you can also try this CSS code first) figure.gallery-grid-item { position: relative; } .gallery-caption { position: static; } /* title */ figcaption.gallery-caption .gallery-caption-wrapper 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; } .gallery-grid-item:hover .gallery-caption-wrapper p.gallery-caption-content { opacity: 1 !important; } /* overlay */ .gallery-grid-item-wrapper a: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; } .gallery-grid-item:hover .gallery-grid-item-wrapper a: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!)
ConnorMcLarenPhotography Posted October 28, 2023 Author Posted October 28, 2023 Hello, I've tried adding in the code you've given there but I can't see what it's doing? https://www.connormclaren.co.uk/galleries This is the link to my galleries page which will have lots of pictures to make have the same hover effect as the portfolio page. I've also noticed the pictures don't go right to the edge of the screen, is there code for this too? Thank you for your help.
tuanphan Posted October 30, 2023 Posted October 30, 2023 My code for Gallery Section, but you are using Image Blocks, so it won't work. You can consider using Gallery Section, it will easier to achieve with code, with Image Block, each image will need a different code so your case will require a lot of code 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!)
ConnorMcLarenPhotography Posted November 3, 2023 Author Posted November 3, 2023 I have now changed the image blocks to gallery on this page https://www.connormclaren.co.uk/galleries
tuanphan Posted November 6, 2023 Posted November 6, 2023 On 11/3/2023 at 9:41 PM, ConnorMcLarenPhotography said: I have now changed the image blocks to gallery on this page https://www.connormclaren.co.uk/galleries I see hover works here, now you want to add link or? 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!)
ConnorMcLarenPhotography Posted November 13, 2023 Author Posted November 13, 2023 The hover is working but I was hoping to make it look like the hover effect on portfolios, when it goes dark with bigger light text?
tuanphan Posted November 18, 2023 Posted November 18, 2023 Change this line background: #f4f6ea; /* overlay color */ to background:rgba(0,0,0,0.85) /* overlay color */ (You can adjust 0.85) 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!)
ConnorMcLarenPhotography Posted November 19, 2023 Author Posted November 19, 2023 I tried replacing this line but it comes up with a message in red at the bottom saying "Syntax error on line 41"
ConnorMcLarenPhotography Posted November 21, 2023 Author Posted November 21, 2023 I thought that may be the case and have tried it and it got rid of the message but the code doesn't seem to change anything
tuanphan Posted November 24, 2023 Posted November 24, 2023 On 11/19/2023 at 8:15 PM, ConnorMcLarenPhotography said: I tried replacing this line but it comes up with a message in red at the bottom saying "Syntax error on line 41" Can you send all current code? We can check problem easier 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!)
ConnorMcLarenPhotography Posted November 24, 2023 Author Posted November 24, 2023 figure.gallery-grid-item { position: relative; } .gallery-caption { position: static; } /* title */ figcaption.gallery-caption .gallery-caption-wrapper 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; } .gallery-grid-item:hover .gallery-caption-wrapper p.gallery-caption-content { opacity: 1 !important; } /* overlay */ .gallery-grid-item-wrapper a:after { background:rgba(0,0,0,0.85) /* overlay color */ content: ""; display: block; position: absolute; top: 0; left: 0; right: 0; bottom: 0; opacity: 0; transition: opacity ease 200ms !important; } .gallery-grid-item:hover .gallery-grid-item-wrapper a:after { opacity: 0.75; } /* remove gap */ figcaption { padding: 0 !important; } This is the full code I'm using, I tried adding a semicolon (background:rgba(0,0,0,0.85); /* overlay color */) which removed the syntax message but the code still didn't achieve what I was hoping for.
tuanphan Posted November 26, 2023 Posted November 26, 2023 These code for LINKED IMAGES, but you haven't added any links to image, so it won't work. Use this new code /* 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:rgba(0,0,0,0.85); /* 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!)
ConnorMcLarenPhotography Posted November 27, 2023 Author Posted November 27, 2023 That seems to work fine, thank you. Is there a way I can increase the size of the text that appears?
tuanphan Posted November 28, 2023 Posted November 28, 2023 You can add font size to this code it will be /* title */ .gallery-caption p.gallery-caption-content { font-size: 30px !important; 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; } 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!)
ConnorMcLarenPhotography Posted August 27 Author Posted August 27 That's great thanks. I have it set to rows of 3 on desktop but it seems to default to rows of two for mobile, is there a code to make it just single image rows on mobile?
tuanphan Posted August 30 Posted August 30 On 8/27/2024 at 11:10 PM, ConnorMcLarenPhotography said: That's great thanks. I have it set to rows of 3 on desktop but it seems to default to rows of two for mobile, is there a code to make it just single image rows on mobile? You can use this CSS code @media screen and (max-width:767px) { .gallery-grid-wrapper { grid-template-columns: repeat(1,1fr) !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!)
ConnorMcLarenPhotography Posted August 31 Author Posted August 31 Thank you. Is there a way I can make the buttons smaller for the phone without affecting the desktop? I have 4 buttons in a row which sits nice on the desktop but when they’re on the phone they’re too big to fit in a row so I have to stack them on top of each other? Please see attached pictures
tuanphan Posted September 3 Posted September 3 On 8/31/2024 at 10:06 PM, ConnorMcLarenPhotography said: Thank you. Is there a way I can make the buttons smaller for the phone without affecting the desktop? I have 4 buttons in a row which sits nice on the desktop but when they’re on the phone they’re too big to fit in a row so I have to stack them on top of each other? Please see attached pictures I think you can edit page > Click Mobile icon on top right > Then drag 4 items same line Use this code to Custom CSS to reduce their size @media screen and (max-width:767px) { .fe-6544ffc4966f3e0e4f844d1b>div:not(:first-child) a { font-size: 10px !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!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment