Skip to content

Instantly share code, notes, and snippets.

@pagelab
Created February 8, 2021 17:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pagelab/8bc0384dcdc8f0583500d82319c6890a to your computer and use it in GitHub Desktop.
Save pagelab/8bc0384dcdc8f0583500d82319c6890a to your computer and use it in GitHub Desktop.
Remove random itens on the WordPress Tag Cloud Widget.
(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