Glossary layout – hide all posts at beginning, show on click A-Z letters

By default, the Glossary list show the A to Z letters, and the posts grid under the letters.
To hide the posts grid at beginning, and show on click a letter, please add this code to Custom JS field (the right textarea) in Content Views >> Settings page:

/* Glossary list - hide all posts at beginning, show on click A to Z letters */
setTimeout(function(){
var $view = $('#pt-cv-view-VIEW_ID');
$view.hide(); $('.pt-cv-gls-menu a').on('click',function(){$view.show()});
},1000);

(please replace VIEW_ID with ID of your View)

Best regards,

Scroll to Top