Skip to main content
How to Open Blog Post Links in a New Browser's Tab

Learn how to customize the Blog module and make each post link open in a new browser tab.

Updated over 5 months ago

Enhancing user experience by opening blog post links in a new browser tab ensures visitors remain on your site while exploring additional content.

This article will guide you through the steps to configure your WordPress site to open blog post links in a new tab.

  1. Open the Blog module's settings by clicking on the Gear icon

  2. Go to Advanced Tab → CSS ID & Classes → CSS Class

  3. Set the CSS Class divi-blog-module-new-tab

  4. Go to WordPress Dashboard Divi Theme Options Integrations Tab Head

  5. Add this JS code:

    <script>
    (function ($) {
    $(document).ready(function () {
    $(".divi-blog-module-new-tab a").each(function () {
    $(this).attr("target", "_blank");
    });
    });
    })(jQuery);
    </script>
Did this answer your question?