Created
February 8, 2021 17:51
-
-
Save pagelab/8bc0384dcdc8f0583500d82319c6890a to your computer and use it in GitHub Desktop.
Remove random itens on the WordPress Tag Cloud Widget.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function ($) { | |
"use strict"; | |
$(function () { | |
$( 'a.tag-cloud-link' ).each(function( index ) { | |
var index = Math.round( Math.random() * 1 ); | |
$( this ).eq( index ).hide(); | |
}); | |
}); | |
}(jQuery)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment