-
AuthorPosts
-
April 13, 2015 at 7:21 am #248350
Kamal VParticipantHi X,
You guys are awesome 🙂
I am trying to change the image on hover but i am unable to figure that out.
I am using a set of images for secondary navigation(6 images in total). When I hover on an image I want the image to change to another image.
Something similar to Demo1 in the below link:
http://css3.bradshawenterprises.com/cfimg/I will send you the details of my site in a private reply.
Thankyou,
KamalApril 13, 2015 at 7:23 am #248353
Kamal VParticipantThis reply has been marked as private.April 13, 2015 at 7:23 am #248354
Paul RModeratorHi Kamal,
Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.
April 13, 2015 at 2:39 pm #248702
Kamal VParticipanthi x,
is anyone checking this? thank you.
regards,
kamalApril 13, 2015 at 7:06 pm #248838
LelyModeratorHi Kamal,
Rest assured that we’re checking every post.
To change image on hover, the image should be used as background.HTML should like this
<a class="x-img butt_img x-img-link x-img-none none x-img-link-one" href="http://marine.createbiggbang.com/wp-content/uploads/2015/04/OHI-Marine-Pleasure.jpg" data-options="thumbnail: 'http://marine.createbiggbang.com/wp-content/uploads/2015/04/OHI-Marine-Pleasure.jpg'" > </a>Notice the x-img-link-one CSS class that I added, now we will define it’s style below.
*Please add the following code in your Customizer via Appearance > Customize > Custom > CSS:
a.x-img-link-one{ background: url('http://marine.createbiggbang.com/wp-content/uploads/2015/04/OHI-Marine-Pleasure.jpg') top center no-repeat; width: 100%; height: auto; display: inline-block; } a.x-img-link-one:hover{ background: url('url-of-image-on-hover-here') top center no-repeat; }Repeat the above html and CSS for every button.
The image should be at least 225X112 to remove the white space.Hope this helps.
April 17, 2015 at 5:15 am #252027
Kamal VParticipantHi,
Thanks for the reply. i am not sure how to add the HTML part in the theme.
My problem right now is:
I want to add two images in one DIV as it is mentioned in DEMO1 in the below link:
http://css3.bradshawenterprises.com/cfimg/This is to have that hover effect which is in the above DEMO1. Using visual composer i could add only one image.
My website details are same as in my previous private reply.
Please help.
Thanks,
KamalApril 17, 2015 at 6:32 am #252053
Paul RModeratorHi Kamal,
Since you are using Visual Composer, you can try this method instead.
1. Add a class to the image you added in visual composer
http://screencast.com/t/Mu9eteYos
2. assuming you added a class my-image-class in the class field of the image, you can then add this CSS code below in the Custom CSS box in the customizer
.my-image-class:hover { content: url(url-of-image-on-hover-here); z-index: 999; width: 100%; }3. You can do the same on your other images by assigning another different class and targeting the specific class for custom CSS
Hope that helps.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-248350 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
