Divi, Show Item Count Next to the Cart Icon

You can show the added to cart items next to the cart icon on the default divi cart in the menu in 2 ways:

  1. By changing the header.php, do an override on child-theme and change the word “true” to “false”:
      if ( !$et_top_info_defined && ( !$et_slide_header || is_customize_preview() ) ) {
        et_show_cart_total( array(
          // 'no_text' => true,
         'no_text' => false,
        ) );
      }

2. By adding the code below to functions.php

Scroll to Top