-
AuthorPosts
-
September 8, 2017 at 7:27 pm #849698
Hi,
My team and I often mock up a page via the avia layout builder for our footers. We grab the debug code and then use that code inside of a custom html widget. Prior to 4.0.7, this worked flawlessly but after the update, it ruined how equal height columns render in the DOM. I brought this up a long time ago in one of my other posts and never decided to pursue an answer from the Enfold team. However, I decided to dig into finding the reason why this might be happening and found the code that breaks my custom footers.
I was just curious if Enfold could suggest any workarounds for my issue such as making a function that would prevent this code from rendering in the footer… or add a fix in enfold in the future… or something else of the sort.
Here is the code that triggers the columns to break found in columns.php.
/** * check if row will break into next column */ if( ( false === $force_close ) && ! empty( avia_sc_columns::$first_atts['min_height'] ) && ( 'av-equal-height-column' == avia_sc_columns::$first_atts['min_height'] ) ) { if( ! isset( $meta['siblings']['next']['tag'] ) ) { $force_close = true; } else if( ( avia_sc_columns::$calculated_size + avia_sc_columns::$size_array[ $meta['siblings']['next']['tag'] ] ) > 1.0 ) { $force_close = true; } }
Here is a test site that the issue occurs on. I currently have the above code commented out in my columns.php but is easily adjustable to demonstrate the issue.
- This topic was modified 7 years, 2 months ago by bitojoe.
September 11, 2017 at 8:48 pm #850664Hey bitojoe,
There is an update for the Equal Heights, that will be released pretty soon.
There are 3 files that are been changed, if it is not an important need for you and you can wait a bit it will be out
If not – let us know and will send u over those changes.Best regards,
BasilisSeptember 11, 2017 at 8:59 pm #850666Our Team will gladly wait it out – I’m just glad there is a fix in the works! Thank you so much Basilis and the entire Enfold team! You can mark this as closed now (:
September 12, 2017 at 7:41 am #850805 -
AuthorPosts
- The topic ‘Using column shortcodes in the footer via custom html widget’ is closed to new replies.