I have tested with WP Rocket disabled. Also with all other blocks disabled from other vendors. No effect. Very odd.
<?php
/**
* Child theme functions
*
* When using a child theme (see https://codex.www.ads-software.com/Theme_Development
* and https://codex.www.ads-software.com/Child_Themes), you can override certain
* functions (those wrapped in a function_exists() call) by defining them first
* in your child theme’s functions.php file. The child theme’s functions.php
* file is included before the parent theme’s file, so the child theme
* functions would be used.
*
* Text Domain: oceanwp
* @link https://codex.www.ads-software.com/Plugin_API
*
*/
/**
* Load the parent style.css file
*
* @link https://codex.www.ads-software.com/Child_Themes
*/
function oceanwp_child_enqueue_parent_style() {
// Dynamically get version number of the parent stylesheet (lets browsers re-cache your stylesheet when you update your theme)
$theme = wp_get_theme( ‘OceanWP’ );
$version = $theme->get( ‘Version’ );
// Load the stylesheet
wp_enqueue_style( ‘child-style’, get_stylesheet_directory_uri() . ‘/style.css’, array( ‘oceanwp-style’ ), $version );
}
add_action( ‘wp_enqueue_scripts’, ‘oceanwp_child_enqueue_parent_style’ );
add_theme_support( ‘wc-product-gallery-lightbox’ );
// override Shop URL
function bbloomer_change_return_shop_url() {
return ‘/all-custom-mirror-frames/’;
}
add_filter( ‘woocommerce_return_to_shop_redirect’, ‘bbloomer_change_return_shop_url’ );
// Add custom font to font settings
function ocean_add_custom_fonts() {
return array( ‘Scala’ , ‘GHEA Aspet Bold’ , ‘GHEA Aspet Regular’ ); // You can add more then 1 font to the array!
}
add_action( ‘ocean_header_template_content’, ‘do_blocks’, 7 );
function rocket_lazyload_exclude_src_custom( $src ) {
$src[] = ‘between-eighths’;
$src[] = ‘frame-edge-mirror-edge’;
return $src;
}
add_filter( ‘rocket_lazyload_excluded_src’, ‘rocket_lazyload_exclude_src_custom’ );
/* Remove the default WooCommerce 3 JSON/LD structured data */
function remove_output_structured_data() {
remove_action( ‘wp_footer’, array( WC()->structured_data, ‘output_structured_data’ ), 10 ); // This removes structured data from all frontend pages
remove_action( ‘woocommerce_email_order_details’, array( WC()->structured_data, ‘output_email_structured_data’ ), 30 ); // This removes structured data from all Emails sent by WooCommerce
}
add_action( ‘init’, ‘remove_output_structured_data’ );