Sets the height and styles of elements with a given class name to make them equal in height.
Example code:
document.addEventListener('DOMContentLoaded', () => {
// Make all buttons same height
if (document.querySelector('.wp-block-button__link')) {
supernovaEqualHeights('wp-block-button__link');
}
// Make all testimonial slides same height
if (document.querySelector('.testimonial-body')) {
supernovaEqualHeights('testimonial-body');
}
});
Share
Maybe it’s time your estate agent website had a faster frontend!
Using technologies such as WordPress, Lighthouse, Persistent Object Caching and bleeding-edge server software, it’s now easier than ever!
WordPress Property Drive
A property management plugin for WordPress
Import properties from Property Drive, search, display, filter, sort, and map using our flagship WordPress property plugin.
Import properties seamlessly from Daft, MyHome, Acquaint CRM, Rightmove, and more using our custom feed integrations!
WordPress Lighthouse
A pagespeed optimisation and performance plugin