-
AuthorPosts
-
January 20, 2014 at 7:10 pm #212377
Hello,
When I hover over an image I get an orange circle with two white arrows pointing in the opposite direction. How do I change this image to show our logo or some other image? Any restrictions on it, such as resolution, file type, etc.? This might help: https://www.dropbox.com/s/i5h5eakomtd4bkz/hover%20image%20enfold.png
Thank you!
January 21, 2014 at 2:27 am #212552Hi Lead!
Edit css > base.css, find this code on line 363:
.image-overlay .image-overlay-inside:before{content:"\E869"; font-family: 'entypo-fontello'; font-size: 18px; font-weight: normal; }
Replace the content value “\E860” with a different fontello icon.You can refer to this link for more icon codes: http://www.entypo.com/characters/
Regards,
IsmaelJanuary 21, 2014 at 4:02 am #212595Hi Ismael,
Thanks for the reply. I’m a bit lost though. We are using the Enfold Child Theme. I go to Appearance > Customize is goes to a Preview screen. When I go to Appearance > Editor I don’t see the base.css file.
On a separate note, I saw the update to the Enfold Theme and I tried to run the automatic update. I got this error, I don’t see a custom.css anywhere. https://www.dropbox.com/s/oolfaujx4s86dqr/Screenshot%202014-01-20%2020.00.15.png
January 21, 2014 at 4:49 am #212606Hi!
You need to edit those files via FTP or you can add the code on the child theme’s style.css.
Cheers!
IsmaelJanuary 21, 2014 at 6:52 am #212633Here is my quick.css in the Child Theme. You can see I added the line at the bottom. When I hover over the image it shows the character code, in this case “E73C”, and not the icon. Thoughts? My preference is to not touch the main theme files to make upgrading easy.
/* Below added on 1/10/14 to make the main body text larger. Added by Ryan Schefke */ body, body p { font-size: 17px; } .main_menu ul:first-child > li > a { font-size: 18px !important; } .image-overlay .image-overlay-inside:before { content:"\E73C"; font-family: 'entypo-fontello'; font-size: 18px; font-weight: normal; }
January 21, 2014 at 10:57 am #212692Hey!
Did you check if the character code is valid? Maybe \E73C does not exist in the “entypo-fontello” font family. If it’s a custom character the font family may vary (i.e. maybe it’s called “fontello”).
Cheers!
PeterJanuary 22, 2014 at 5:13 am #213170Hello,
Am I doing it right? I go to the link recommended above by Ismael, http://www.entypo.com/characters/. Then I use the character code under the image. For example, if I wanted to use the phone (image on very top left), then the code is U+1F4DE. I enter in “1F4DE” in the code entered into quick.css. My quick.css ends up looking like this:
/* Below added on 1/10/14 to make the main body text larger. Added by Ryan Schefke */ body, body p { font-size: 17px; } .main_menu ul:first-child > li > a { font-size: 18px !important; } .image-overlay .image-overlay-inside:before { content:"\1F4DE"; font-family: 'entypo-fontello'; font-size: 18px; font-weight: normal; }
Again, when I hover over the image it just shows “1F4DE” and does not show the phone icon.
January 22, 2014 at 11:28 am #213241Hey!
Ok. My bad! You really need to edit base.css then find the code I posted above. Change the icon code.
Best regards,
IsmaelJuly 8, 2015 at 12:06 pm #470144Ismael, I’m confused, I added the code you wrote at the start of this post into my quick css, and it worked perfectly. No need to add it to base.css (I did add !important for the icon, I don’t know if I needed to, but it’s working anyway!)
-
AuthorPosts
- The topic ‘Changing Image When Hovering Over Images’ is closed to new replies.