Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- function tag_href_replace(event) {
- const fields = jQuery('form#search-filter-form-39266 input:checked').serializeArray().map((checked) => checked.value)
- jQuery('.blog a.st-tags').each(function(){
- this.href = this.href.replace("/tag/", `?sfid=39266&_sft_category=${fields}&_sft_post_tag=`)
- this.href = this.href.replace(/sft_category=[a-z-,]*/, `sft_category=${fields}`)
- })
- }
- jQuery('form#search-filter-form-39266 input:checkbox').on("click", tag_href_replace)
- jQuery(window).on('load', tag_href_replace)
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement