All Collections
FAQ's and Troubleshooting
How To Replace The Pipe " | " In The Blog Meta Tag - Divi
How To Replace The Pipe " | " In The Blog Meta Tag - Divi

Change the pipe character in the blog meta tag

Cristi avatar
Written by Cristi
Updated over a week ago

The Divi theme is using the pipe symbol " | " to separate the meta tags: 


You may want to change this to something else and, before I share the code, note that this code will change the pipe symbol on all the posts, including single posts, the blog module and all archive/category/search pages.

Please add this code in Divi > Integration > Add code to the < body > (good for tracking codes such as google analytics):

<script>
jQuery(function ($) {
$(document).ready(function () {
var post_meta = $('article .post-meta');
if (post_meta.length) {
post_meta.each(function () {
$(this).html($(this).html().replace(/\|/g, " *"))
})
}
});
});
</script>


Results: 

As you can see, I replaced the pipe with a star symbol. Feel free to change the star * character in the code to your desired character or even to text.

Did this answer your question?