Sela Theme – color overlay on menu and widget images
-
Is there a way I can get the font to change color when I hover the mouse over my menu titles?
Also, is there a way for me to add a color overlay and text to appear when I hover my mouse over the pictures in my widget columns?
The blog I need help with is: (visible only to logged in users)
-
This styles overrides the hover and focus colors for menu items for both main menu items and Portfolio submenu items.
main-navigation a:hover, .main-navigation ul > :hover > a, .main-navigation ul > .focus > a { color: red; } .main-navigation ul ul > :hover > a { color:red; }If you need a different color for each menu item, please let me know. In that case we need to target each menu item individually and add specific color.
It looks like you have three image widgets, one for each collection. So add some text for title property in the image widget. This text will then showup as a tooltip when you hover mouse over the images. We can then try to apply some CSS and see if we can change the style of the tooltip.
-
Thanks for the code to the hover and focus colors.
I did what you said about adding text to the title property of my widget. I like the idea, but could we possibly also have an overlay of color when the mouse hovers the image?
Thanks again.
-
We can’t apply color to an image element. Color is only for the text.
Could you try opacity instead and see if you like it. Feel free to change value between 0 and 1.
0 is transparent and 1 is opaque.
aside#image-5 img.alignnone:hover { opacity: 0.5; } -
That’s good enough :) Do I just copy the code here and change the number of the image to make all the widgets like this?
-
I combined the styles for the three images into the following. Please remove the earlier style and add just this:
aside#image-5 img.alignnone:hover, aside#image-6 div.alignnone:hover, aside#image-7 div.alignnone:hover { opacity: 0.5; } -
-
I’m back on this topic now :)
Is there a way that instead of changing the image from one to another image entirely when your mouse hovers over the area? Right now we’ve got it where the entire image’s opacity lightens – but is there a way to have the image transition into another one entirely?Sorry for all the weirdo questions but you’ll never know if you don’t ask ;)
THanks for your help!
-
-
Seems you have changed your homepage layout.
Do you still need help with changing the images on hover?
-
Yes! I’m looking to try this out with the 3 photos located in my front page sidebar areas.
Would you like me to provide URLs for 3 other pictures we could try to do that with? -
Hmm, images is not a problem. I can use any random image for testing.
There is some CSS quirk I am not able to figure at this time. I an not getting how to change the background image on hover.
-
-
Hi there, it looks like you have gotten this figured out by using a background declaration with hover. Nice job! If you have further questions, please let us know.
- The topic ‘Sela Theme – color overlay on menu and widget images’ is closed to new replies.