-
AuthorPosts
-
January 9, 2017 at 5:43 pm #731215
Hi
I have a color section which contains 2 half columns (equal height, no space between), One column contains text and an image background and the other contains an image ( as a background). I want to be able to link the entire color section (as if it were a div) to a page on the site. I’ve looked at other replied regarding this type of subject, tried adding a link with the builder mode visible but cannot seem to get anything to work. Is this possible?
Many Thanks
Regards
ColinJanuary 9, 2017 at 7:10 pm #731248and what do you do with all those “Touch-Screen-Junkies” visiting your site? (All mobiles, ipads, other touchpads etc.)
If they “Scroll” down they will press the “Link” immediately – because color-section width is the screen-width.
That is the reason why the google map (if placed in a color section) in enfold has the opportunity to set the pointer-events to nothing.January 9, 2017 at 7:32 pm #731251Hi Guenni007
Yes true, so I just want the two columns with links on them, not a color section..
Regards
January 10, 2017 at 7:00 am #731402Hi Colin,
You could try wrapping the elements you want to link within two code blocks with the following content:
First code block:
<a href="http://site.com">
Second code block
</a>
Best regards,
RikardJanuary 10, 2017 at 9:31 am #731469this might work – do not forget to mark that little field “Deactivate Scheme org markup” (otherwise you have a lot of surrounding containers to the code block) :
looks this way:
i give those 1/2 columns a custom class ( column-link) and set up :
.column-link a { display: block; height: 100%; width: 100%; } .column-link div { display: inline-block; }
you can see it here: https://webers-testseite.de/ikom/neu/
each column is a link and works even for the whole area ( thats why the css is necessary)
January 10, 2017 at 9:35 am #731471by the way – i see that the column padding has no active link – so it might be better to have no padding here – and to set the padding to the content.
so i gave to those contents a custom class (columnlinkpadding) and gave the link a hover style:
.column-link a { display: block; height: 100%; width: 100%; } .column-link a:hover { box-shadow: 1px 1px 5px #333; } .column-link div { display: inline-block; } .column-link .columnlinkpadding { padding: 5px 30px; }
But : A link in that column works but destroys the construction. (by the way a link in a link is not valide code)
January 10, 2017 at 11:55 am #731514Hi
Brilliant !!!
Thanks for the diagram, that is the bit I didn’t understand on other posts. The diagram really helps. And it works perfectly :-)
Many Thanks
Regards
ColinJanuary 10, 2017 at 12:51 pm #731527yes but as mod you have to be fast – and those demos with screenshots costs a lot of time.
Only other participants – maybe working on similar problems can do that.
Your welcomeJanuary 10, 2017 at 3:09 pm #731575April 18, 2017 at 7:50 pm #779606Hi guys, how can i get this solution to work for columns within a grid row cell, or just a grid row cell itself? (in which case I’d like to have a color hover cover the grid row cell as well.)
April 18, 2017 at 7:55 pm #779612Hi,
You can enable the custom CSS classes following this tutorial: http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/ and add an exclusive class to each column and after it, you can apply a custom CSS code to have the color cover.
Best regards,
John TorvikApril 18, 2017 at 10:36 pm #779686Thanks for the link John. Need a little help.
I’ve almost got it but my solution is only affecting the individual elements within the grid column and not the column itself. I can’t figure out how to target it. My mouse-out transition won’t work either. Here’s my code:
#top .rtr-column-link av-layout-grid-container entry-content-wrapper main_color av-flex-cells avia-builder-el-1 el_after_av_revolutionslider el_before_av_section submenu-not-first container_wrap fullsize { display: block; width: 100%; height: 100%; transition: opacity background-color 0.5s ease-in-out; } #top .rtr-column-link :hover { background-color: white; transition: background-color 0.3s ease-in-out; opacity: 0.5; }
Appreciate any help.
Thanks!
NIck- This reply was modified 7 years, 7 months ago by ridick6.
April 18, 2017 at 10:48 pm #779688I just realized I’m targeting everything within the container duh. But i can’t figure out what the class is before av-layout-grid-container.
April 19, 2017 at 7:15 am #779814Hi,
Can you post a link to your site? so we can check it.
Best regards,
NikkoApril 20, 2017 at 5:12 pm #780666Hey Nikko,
Of course. Info provided.
Best,
NickApril 20, 2017 at 9:03 pm #780772Hi,
I checked the page but I couldn’t find this class .rtr-column-link which might be the reason it isn’t working. Try using this css code:
#top .av-layout-grid-container .av_one_third:hover { transition: all 0.5s ease-in-out; opacity: 0.5; }
Let us know if this helps.
Best regards,
NikkoApril 20, 2017 at 9:11 pm #780777Hey Nikko,
Its at the bottom of the Quick CSS window :D. Its a long list lol.
I’ll modify with your code and report back.Thanks!
April 20, 2017 at 10:18 pm #780833Ok that didn’t work but i’ve managed to make some progress. Seems I was on to something yesterday but I forgot to add the period before the styles after my own style.
Here’s what I got to work, at least to get a color change over the entire container on hover, with the ease-in transition working (but not ease out):
#top .rtr-column-link .av-layout-grid-container { display: block; width: 100%; height: 100%; } #top .rtr-column-link:hover { background-color: #000; transition: all 0.3s ease-in-out; opacity: 0.5; }
The problem is no matter what I do I can’t get the hover color to change. It stays the white with opacity only. Also the link doesn’t span the entire block. and then theres that pesky ease-out transition that won’t work no matter what I try.
Also i’d like to have a separate option to make the hover affect the background only (as well as cover everything as it is now.)
The container i’m targeting is the Talent Acquisition box on the left under the hero.
Let me know if you find it.
Thanks!
April 24, 2017 at 4:23 pm #782413Hi can anyone assist me with the above?
Thanks,
NickApril 26, 2017 at 8:26 am #783319Hi Nick,
Sorry for late response and missing this thread. Try changing your code from:
#top .rtr-column-link:hover { background-color: #000; transition: all 0.3s ease-in-out; opacity: 0.5; }
to:
#top .rtr-column-link { transition: all 0.3s ease-in-out !important; } #top .rtr-column-link:hover { background-color: #000 !important; opacity: 1 !important; }
Let us know if this helps :)
Best regards,
NikkoApril 26, 2017 at 8:47 am #783335Hi Nikko,
No problem at all. Thanks so much for getting back to me. :)
Your code fixed the ease out issue. Thank you!
- Question: How do I make the entire hover area clickable, not just the button? I tried adding display:block; to the hover but itbreaks everything in the cell.
- Also there’s a weird issue with the opacity. If it’s set to black and I lower the opacity, the overlay starts to become white instead of the black becoming transparent.
Thanks!
NickApril 29, 2017 at 12:28 pm #784929Hi ridick6,
You can make the whole area clickable with Javascript. You need to listen to click events on the area you want and then have a function to handle those clicks.
If you need further assistance please let us know.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.