Hello Karl, I'd like to replace the icon that appear when I hover on each gallery
with another png icon.
How can I do that?
X3 Photo Gallery Support Forums
Use this resource to find the "content" code for the icon you want to use:sprocket wrote:I'd be interesting in a hack to use a different icon from the font-awesome icons
.folders .image-container:before {
content: '\f004' !important;
}
Niceandreamarucci wrote:Also upgraded PHP to 7.0 and X3 works perfectly and it seems faster than before...
.folders.hover .image-container:before {
content: '\f004' !important;
}
That got it and I see within the folder css classes, we can use 'hover' for our hacked hover icon or 'x3-hover-icon-asterisk-primary' to keep the original hover icon, allowing us to mix and match the two. Thanksmjau-mjau wrote:Yea, I guess that's why you call it a hack ... It should work if you make the CSS more specific like below, but it will make it even more of a "hack" really. With the below, it only applies for folders where you have the hover class applied.Code.folders.hover .image-container:before { content: '\f004' !important; }