Setting a link for an entire column

Hi there, I’m wondering how to hyperlink an entire column – asking for the homepage trio on dev2.zibafoods.com running X theme.

I tried assigning COLa, COLb, and COLc as the column IDs and then added the following JS

jQuery("#COLa").wrap("");
jQuery("#COLb").wrap("");
jQuery("#COLc").wrap("");

The links worked, but the formatting got all screwed up and crunched together. Please advise.

Thanks

Hi @Web_Services,

To fix the layout issue, please also add this custom CSS:

.display-flex .x-column {
    width: 100%;
    height: 100%;
}

@media (min-width: 980px){
    .display-flex > a {
        width: 33.3333%;
    }
}

@media (max-width: 767px){
    .display-flex > a {
        height: 480px;
        display: block;
    }
}

Hope that helps and thank you for understanding.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.