Viewing 22 posts - 1 through 22 (of 22 total)
  • Author
    Posts
  • #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
    Colin

    #731248

    and 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.

    #731251

    Hi Guenni007

    Yes true, so I just want the two columns with links on them, not a color section..

    Regards

    #731402

    Hi 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,
    Rikard

    #731469

    this 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)

    #731471

    by 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)

    #731514

    Hi

    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
    Colin

    #731527

    yes 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 welcome

    #731575

    Hi Colin,

    Great, glad we, or rather @guenni007, could help out :-)

    Best regards,
    Rikard

    #779606

    Hi 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.)

    #779612

    Hi,

    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 Torvik

    #779686

    Thanks 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.
    #779688

    I 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.

    #779814

    Hi,

    Can you post a link to your site? so we can check it.

    Best regards,
    Nikko

    #780666

    Hey Nikko,

    Of course. Info provided.

    Best,
    Nick

    #780772

    Hi,

    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,
    Nikko

    #780777

    Hey 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!

    #780833

    Ok 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!

    #782413

    Hi can anyone assist me with the above?

    Thanks,
    Nick

    #783319

    Hi 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,
    Nikko

    #783335

    Hi 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!
    Nick

    #784929

    Hi 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

Viewing 22 posts - 1 through 22 (of 22 total)
  • You must be logged in to reply to this topic.