Tagged: x
-
AuthorPosts
-
March 9, 2017 at 4:31 am #1400361
glenngtrParticipantHi all,
I have a question. I would like to change the colour on hove for some SVG logo’s. Initially they are grey but when the mouse hovers over them I want them to go full colour.
I have tried the method in the following topic (https://community.theme.co/forums/topic/image-hover-3/#post-161846) but with no luck. I can see a transition happening, but on hover I only see a faint red glow instead of a Black and Red logo.
I have a full colour SVG file vanwijnen.svg and a grey version grijsVan-Wijnen.svg in the medialibrary
March 9, 2017 at 4:33 am #1400365
glenngtrParticipantThis reply has been marked as private.March 9, 2017 at 5:41 am #1400416
glenngtrParticipantI have two other questions:
1. How can I make a revolution slider in a page (container) full width? It now fits to the content area where I want the slider to be full width.
2. There are two columns that have a lot of content (‘tenderfase’ en ‘realisatiefase’), I would like to break it down with a ‘read more’ link, so if you would click it, the content would collaps. How can I do that?
March 9, 2017 at 6:02 am #1400431
Paul RModeratorHi,
I went ahead and fix the first logo.
Kindly do the same for the other.
Add a unique class and add custom css targeting that class.
Hope that helps.
March 9, 2017 at 6:05 am #1400432
Paul RModeratorHi,
1. You may refer to this link – https://community.theme.co/kb/sliders/
2. You may use accordion element instead – http://demo.theme.co/integrity-1/shortcodes/accordion/
Hope that helps.
March 9, 2017 at 7:31 am #1400491
glenngtrParticipantHi Paul,
Unfortunately the logo hover did not work. It’s getting a light gray hover that it already did previously, so I can’t make it work for the other logo’s unfortunately. Please see video clip in attachment.
March 9, 2017 at 8:51 am #1400583
glenngtrParticipantHi Paul, the article you suggested talks about sliders above or under the masthead, but that is not what I need. I need a slider in the middle of the page to be full width. Can you help me with that? I don’t want to use a background img for a section because it gives me less responsive control.
March 9, 2017 at 4:49 pm #1401166
RadModeratorHi there,
The actual SVG files are gray
http://www.bgrip-contractmanagement.nl/wp-content/uploads/2017/03/grijsVan-Wijnen.svg
http://www.bgrip-contractmanagement.nl/wp-content/uploads/2017/03/grijsBouwhuysch.svg
http://www.bgrip-contractmanagement.nl/wp-content/uploads/2017/03/grijsDuraVermeer.svg
http://www.bgrip-contractmanagement.nl/wp-content/uploads/2017/03/grijsBAM.svgYou can only change its color by directly editing those files, you can’t colorized them through CSS.
About the slider, edit your slider settings and set it to full-width. Or, inspect your section row and toggled off the column container.
Thanks!
March 10, 2017 at 6:38 am #1401808
glenngtrParticipantHi Rad,
1. Disabling the column container did the trick for the full width slider, thanks!
2. As mentioned in the first post, there already was a full colour svg to experiment.
http://www.bgrip-contractmanagement.nl/wp-content/uploads/2017/03/vanwijnen.svg
for you reference I added the other full colour svgs as well.
http://www.bgrip-contractmanagement.nl/wp-content/uploads/2017/03/duravermeer.svg
http://www.bgrip-contractmanagement.nl/wp-content/uploads/2017/03/bouwhuysch.svg
http://www.bgrip-contractmanagement.nl/wp-content/uploads/2017/03/bam.svgSo how do put them in greyscale or a solid color fill (preferable), and then have the full colour logo on hover?
Thanks.
Best regards
March 10, 2017 at 5:16 pm #1402449
RadModeratorHi there,
You’ll have to use CSS filter, but your SVG should be in colored first. Please update your logo to colored ones (correct SVG URL) then add this CSS to Admin > Appearance > Customizer > Custom > CSS
.grayscale-effect { -webkit-filter: grayscale(100%); filter: grayscale(100%); opacity: 0.5; } .grayscale-effect:hover { -webkit-filter: none; filter: none; opacity: 1; }Then add grayscale-effect to your image’s Class attribute. Example,
[image class="grayscale-effect"]Thanks!
March 13, 2017 at 5:34 am #1404676
glenngtrParticipantWorked like a charm. Thanks!
March 13, 2017 at 5:51 am #1404698
ChristopherModeratorYou are welcome.
March 13, 2017 at 7:51 am #1404802
glenngtrParticipantLast question (I hope :-)) for some reason the svgs scale differently when displayed in mobile layout. Is there a way to fix it so it aligns with the upper to logos? (see attachment)
March 13, 2017 at 11:01 pm #1405843
LelyModeratorHi There,
SVG proportion/size are different. For mobile to make it the same size and align properly, please try adding this custom CSS:
@media (max-width: 480px){ .x-block-grid.four-up>li>a>img { max-width: 217px; } }Hope this helps.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1400361 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
