Hi. Great theme and support!
For some reason there’s no space between taxonomies in sorting options above Masonry element. Any ideas on how to fix this?
Also, how can I replace slash “/” with vertical bar “|” as separator between taxonomies?
Thanks!
Hey Simijonovic,
Thank you for the inquiry.
You can add this css code to adjust the space between the sorting buttons:
.av-masonry-sort a {
margin-right: 4px;
margin-left: 4px;
}
And to replace the slash with vertical bar or pipe, you can add this script in the functions.php file:
function av_masonry_sort_separator() { ?>
<script>
window.addEventListener('DOMContentLoaded', function() {
(function($){
$('.av-masonry-sort .text-sep').each(function() {
var text = $(this).text();
$(this).text(text.replace('/', '|'));
});
})(jQuery);
});
</script>
<?php
}
add_action('wp_footer', 'av_masonry_sort_separator');
Best regards,
Ismael