Hey There,
You may not have uploaded the file yet or you may have deleted it. Since you have your child theme active and ready, please follow the following steps below:
1] Using Notepad or TextEdit or Sublime Text or any text editor, please create a new file in your local machine.
2] Insert the following code into that new file
<?php
// =============================================================================
// FUNCTIONS.PHP
// -----------------------------------------------------------------------------
// Overwrite or add your own custom functions to X in this file.
// =============================================================================
// =============================================================================
// TABLE OF CONTENTS
// -----------------------------------------------------------------------------
// 01. Enqueue Parent Stylesheet
// 02. Additional Functions
// =============================================================================
// Enqueue Parent Stylesheet
// =============================================================================
add_filter( 'x_enqueue_parent_stylesheet', '__return_true' );
// Additional Functions
// =============================================================================
// AJAX
// =============================================================================
if ( ! function_exists( 'x_woocommerce_navbar_cart_ajax_notification' ) ) :
function x_woocommerce_navbar_cart_ajax_notification() {
//if ( x_is_product_index() && get_option( 'woocommerce_enable_ajax_add_to_cart' ) == 'yes' ) {
$notification = '<div class="x-cart-notification">'
. '<div class="x-cart-notification-icon loading">'
. '<i class="x-icon-cart-arrow-down" data-x-icon="" aria-hidden="true"></i>'
. '</div>'
. '<div class="x-cart-notification-icon added">'
. '<i class="x-icon-check" data-x-icon="" aria-hidden="true"></i>'
. '</div>'
. '</div>';
// } else {
// $notification = '';
// }
echo $notification;
}
add_action( 'x_before_site_end', 'x_woocommerce_navbar_cart_ajax_notification' );
endif;
3] Save the file named as functions.php
4] Upload this file to your server in the child theme’s folder wp-content/themes/x-child/
We would loved to know if this has work for you. Thank you.