Hello,
I modified my porfolio grid CSS, following one of your treads (https://kriesi.at/support/topic/portfolio-grid-add-excerpt-under-title/), to have the title of the portfolio item appear on hover, instead of the default arrow. Everything works well, but I would like to add a padding on both sides of the title to make sure that it doesn’t appear too close to the right and left borders, as shown in the link below, but wraps instead on the next line.
I would also like to make sure that when the user clicks on the image on a mobile device 1) the dark blue background and title appear 2) the user clicks a second time 3) the user sees the portfolio item page. Currently, the user is directly directed to the portfolio item page, without seing its title, as the hover effect doesn’t work on mobile devices.
Could you please help me on this?
Many thanks,
Catherine
Hi CatherineCBrand!
Thank you for using Enfold.
Add a padding property to the .grid-image:before selector. Replace the css code with this:
.grid-image:before {
content: attr(title);
position: absolute;
width: 100%;
height: 100%;
z-index: 1000;
text-align: center;
opacity: 0;
display: none;
font-weight: 200;
font-size: 24px;
color: #ffffff !important;
top: 50%;
}
.grid-image:hover:before {
opacity: 0.9;
display: block;
}
Regards,
Ismael
Great!
Many thanks,
Catherine
Hi Catherine!
Glad it worked and thanks for using Enfold! If you have the time, please rate the Enfold theme on Themeforest.
Cheers!
Jordan
Hi Guys and thanks for the tips.
I managed to have the title when hover the images but, I would like to replace the title under the images and have the excerpt instead.
Title on hover & excerpt under the images. Is that possible?
Thanks
Hi!
There is nothing simple for that, we are afraid.
The best option is to hire someone who can help you with that type of the modification, by creating a child theme and connecting Enfold shortcodes.
Thanks a lot
Cheers!
Basilis