Hi,
If you choose to have for home page your shop page of woocommerce, an error occurs :
Notice: Undefined offset: 0 in ……./wp-content/themes/enfold/config-woocommerce/config.php on line 442
It’s because, the value 0 checked doesn’t exist in this case :
$home = $trail[0];
The $home variable is “trail_end” not 0.
Correction :
$key_trail = array_keys($trail);
$home = $key_trail[0];
Keep me in touch when you think correct this.
Thx,
Hey Octopus4444,
Thank you for the info.
This will break the single product breadcrumbs. Please try this instead.
$front = avia_get_option('frontpage');
$shop = get_option( 'woocommerce_shop_page_id' );
if($front == $shop && is_front_page()) {
$key_trail = array_keys($trail);
$home = $key_trail[0];
} else {
$home = $trail[0];
}
Best regards,
Ismael
OK thanks,
Do you think you will update enfold theme with this correction ?
Regards,