Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"phpcs.standard": "WordPress"
}
4 changes: 4 additions & 0 deletions docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ export default defineConfig({
text: 'Block Style Modifier',
link: '/js-libraries/block-style-modifier'
},
{
text: 'Match Height Library',
link: '/js-libraries/match-height'
},
]
}
]
Expand Down
14 changes: 14 additions & 0 deletions docs/js-libraries/match-height.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
outline: deep
---

# Match Height

## Introduction
Match Height is a jQuery plugin that automatically matches the heights of elements. This is particularly useful for creating uniform card layouts, grid systems, or any scenario where you need multiple elements to have the same height regardless of their content.

The library is automatically registered and available for both front-end and admin scripts, with jQuery as a dependency.

## Usage
For complete usage documentation, options, examples, and advanced features, please refer to the official [jquery-match-height repository](https://github.com/liabru/jquery-match-height).

4 changes: 4 additions & 0 deletions theme-template/includes/register-scripts.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
'wp_enqueue_scripts',
function () {
$asset_enqueue = Asset_Enqueue::get_instance();

wp_register_script( 'match-height', 'https://cdnjs.cloudflare.com/ajax/libs/jquery.matchHeight/0.7.2/jquery.matchHeight-min.js', array( 'jquery' ), '0.7.2', true );

$asset_enqueue->register_vite_script( 'example_script', 'js/example-script.js' );
wp_enqueue_script( 'example_script' );
Expand All @@ -29,6 +31,8 @@ function () {
function () {
$asset_enqueue = Asset_Enqueue::get_instance();

wp_register_script( 'match-height', 'https://cdnjs.cloudflare.com/ajax/libs/jquery.matchHeight/0.7.2/jquery.matchHeight-min.js', array( 'jquery' ), '0.7.2', true );

$asset_enqueue->register_vite_script( 'block_styles', 'js/admin/block-styles.js', array( 'block_style_modifier' ) );
wp_enqueue_script( 'block_styles' );
}
Expand Down