First of all, I know absolutely bugger all about jQuery. CSS, HTML and PHP I’m fine with. jQuery may as well be Klingon. So please do dumb-down any responses in that regard!
According to GitHub I should be able to get the height to reload after an AJAX call, for example, using: jQuery( window ).trigger( ‘equalheights’ );
I’ve tried loading this function in the accordion with no success. No matter where I put it or how I call it I just can’t get it to adjust to the expanded height.
As you can see, the height of the content and sidebar have been matched. But when you click to expand an accordion item there’s no adjustment being made for the extra height - the content just expands over the footer.
I’d rather not go to the hassle of replacing the default sidebar with a beaver column and equalising the heights that way.
Is there any way to equalise the height of the sidebar while using accordion content?
Just took a look at your Website. Have you tried the new “Equalize Column Heights” feature in BB plugin? I’m sure you’ll get better results than this. Try using a blank page template, then use the “Right Sidebar” Row layout. Insert your preferred widgets into the sidebar column and your contents on another and set the column equal heights. I’ve attached a sample screenshot of the outcome. Let us know how it goes.
So the problem here is that we don’t have an event that triggers when the accordion opens/closes. Our lead dev will look at adding those along the way so you may easily hook into them.
I’ve fallen back on the built-in ‘Equalize Column Height’ feature, and used a custom template and CSS to replicate the standard content and sidebar styles.