Last active
June 2, 2020 17:11
-
-
Save ryandejaegher/c43c5cdc6bfc8184aa5fac76b405e670 to your computer and use it in GitHub Desktop.
Remove comma from Squarespace categories
This file contains hidden or 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
| /* Add to Settings -> Advanced -> Code Injection -> Footer in Squarespace */ | |
| <script> | |
| window.addEventListener('load', function(){ | |
| (function(){ | |
| var cats = document.querySelectorAll('.summary-metadata-item--cats, .Blog-meta-item--categories'); | |
| cats.forEach(item => { | |
| item.innerHTML = item.innerHTML.replace(", ", "") | |
| }) | |
| }()) | |
| }) | |
| </script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment