1. PROMO Subscribe our All Access Pass @ 75% OFF & access all our 16+ premium Divi extensions: Divi Block Pro, Carousel Toolkit, etc.LEARN MORE
Dismiss Notice
NEW Divi.Help Pro Carousel AI Toolkit - Magically turn your Divi design into carousel, simply by using our online toolkit. No plugins needed. Now it works with Divi 5 as well!Try our carousel AI toolkit
BEST Divi Block - A revolutionary drag & drop tool to easily mix & match 960+ premade blocks (Light & Dark) to kick start your Divi site design. Special module designs are included as well. Also newly added AI generator & color. Now it works with Divi 5 as well!
Learn More About Divi BlockFree Version ~ 340+ Free Blocks

Solved Entire column a dynamic href link

Discussion in 'Free Divi Community Forum' started by chris r, Sep 20, 2019.

  1. chris r

    chris r Member

    Hi,

    I'm trying to make an entire Divi column a dynamic link. This column contains two text modules stacked on top of each other: The top one is a text module with a shortcode that displays title and text from a different custom post type. The bottom module is simply an arrow image that must be aligned to the bottom of the column no matter how lengthy the text above is. I'm trying to include both these in a dynamic href link.

    A screenshot attached of what I'm trying to achieve.

    The problem is that I need to align the arrow to the bottom of each column(there will be 3) no matter how lengthy the text above it. I tried including the arrow in the top text module, but if I absolutely position the arrow to the bottom, it only does so relative to the top text module, not the column.

    My problem is how to make the entire column a link that points dynamically to the post of the top text module? I see how to make a column a link in Divi, but not dynamically based on the post title coming from the shortcode. In the shortcode, if I wrap the top text module div in a link, then there is an empty space that isn't part of the link between the top module text and the bottom arrow. I'd like the arrow and all the text to be part of one href, but can't figure this out in Divi.

    Any advice helpful!
     

    Attached Files:

    1. PRO MEMBER PERKS Beautifully crafted custom colored 'Industrial' Divi layout for all Pro members:View Demo
  2. Divi.Help

    Divi.Help Administrator
    Staff Member

    What you could try is to have a separate link tag (without wrapping any div) in your shortcode with CSS like:
    Code:
    Log In or Sign Up to view this code.
    Then for your arrow, you should make it position absolute as well.

    And lastly, the text module with shortcode, try to add height: 100%; to it.

    Also remember to enable Equalize Column Height for the row settings.
     
  3. chris r

    chris r Member

    Thanks a lot!

    This worked with a few tweaks. I used height 100% on the text module with a class of 'all-hover-block' as well as the .et_pb_text_inner class.

    Code:
    Log In or Sign Up to view this code.
    In the short code I included the custom post title and text as well as the arrow and wrapped it in an href in the shortcode itself.

    Code:
    Log In or Sign Up to view this code.
    Then I absolutely positioned the arrow to the bottom with your CSS from above tweaking it so it appears on the right.

    Woohoo, thanks again!
     
    1. PRO MEMBER PERKS Beautifully crafted custom colored 'Industrial' Divi layout for all Pro members:View Demo