Skip to content

Instantly share code, notes, and snippets.

@htmgarcia
htmgarcia / custom.js
Last active April 7, 2019 13:50
Same height for modules in Wright Framework
/**
* jquery-match-height master by @liabru
* http://brm.io/jquery-match-height/
* License: MIT
*/
;(function(factory) { // eslint-disable-line no-extra-semi
'use strict';
if (typeof define === 'function' && define.amd) {
// AMD
@htmgarcia
htmgarcia / metaslider-image-title-above.php
Last active October 17, 2024 14:50
Display image title attribute above image in MetaSlider
<?php
// Replace 123 number in .metaslider-123 with the actual slideshow ID
function image_title_above_inline_script() {
wp_enqueue_script('jquery');
$inline_js = "
(function($) {
$(document).on('metaslider/initialized', function (e, identifier) {
if ($(identifier).closest('.metaslider.metaslider-123').length) {
var slideshow = $(identifier);