Skip to main content
All CollectionsTroubleshooting and FAQsFrequently Asked QuestionsBlog Module
How to Eliminate Separators in the Blog Module Post's Meta
How to Eliminate Separators in the Blog Module Post's Meta

A quick guide on how to eliminate separators in the Blog Module Post Meta

Updated over 5 months ago

This guide will explain how we can eliminate separators in the Blog Module Post's meta information.

Notes:

  • A custom CSS class must be set on a Blog module to ensure the following changes apply only to that module.

  • All Blog modules with the same CSS class set will have the separator eliminated in each Post's meta.

Open the Blog module module settings

  1. Go to the Advanced Tab → CSS ID & Classes → CSS Class

  2. In the CSS Class input field, type in ​divi-blog-separators

    divi blog module

  3. Go to Divi → Theme Option → Integration tab → Header

  4. Paste in the following JS code:

    <script>
    (function ($) {
    $(document).bind('ready ajaxComplete', function () {
    $('.divi-blog-separators .post-meta').each(function () {
    $(this).html($(this).html().replace(/\|/g, " "));
    $(this).html($(this).html().replace('by', " "));
    $(this).html(jQuery(this).html().replace(/,/g, ""));
    });
    });
    })(jQuery)
    </script>

The result can be seen in the screenshot below:

Blog module with Separator removed
Did this answer your question?