golden hour
/home/doctorbruno/public_html/targetpg.in/wp-content/themes/magazine-pro/js
⬆️ Go Up
Upload
File/Folder
Size
Actions
move-entry-dates.js
805 B
Del
OK
responsive-menus.js
11.16 KB
Del
OK
responsive-menus.min.js
3.6 KB
Del
OK
Edit: move-entry-dates.js
/** * Moves Genesis Blocks Post Grid dates inside featured images. * * @package StudioPress\JS * @author StudioPress * @license GPL-2.0-or-later */ ( function() { 'use strict'; /** * Moves the Genesis Blocks Post Grid date element into the featured image. * * The desired styling can not be achieved without moving the element. * * @since 3.4.0 */ function moveDates() { var i, $date, $imageLink; var $articles = document.querySelectorAll( '.gb-block-post-grid .is-grid article' ); for ( i = 0; i < $articles.length; ++i ) { $date = $articles[i].querySelector( '.gb-block-post-grid-date' ); $imageLink = $articles[i].querySelector( '.gb-block-post-grid-image a' ); if ( $date && $imageLink ) { $imageLink.appendChild( $date ); } } } moveDates(); }() );
Save