Hello,
On our website the sidebar on product pages is being shown below the product information, rather than on the right. This morning I updated Enfold but that did not resolve the issue. Please see link below.
Hey rolgear,
Thank you for the inquiry.
That is actually the default layout of the product pages. If you would like to move the widget area to the sidebar, please check the following thread.
// https://kriesi.at/support/topic/left-sidebar-on-single-shoppage-enfold/#post-1296033
// https://kriesi.at/support/topic/shop-sidebar-to-right-side/#post-1245585
// https://kriesi.at/support/topic/left-sidebar-on-single-shoppage-enfold/#post-1295429
Best regards,
Ismael
Hi,
There was a minor syntax error in the snippet. Please try it again.
/* zijbalk op productpagina */
function ava534345953_init() {
add_action( 'woocommerce_after_single_product_summary', 'avia_add_sidebar', 25);
add_action( 'woocommerce_after_single_product_summary', 'avia_close_image_div_mod', 20);
add_action( 'woocommerce_before_single_product_summary', 'avia_open_image_div_mod', 1 );
}
function avia_open_image_div_mod() {
echo "<div class='product-main-container'>";
}
function avia_close_image_div_mod() {
echo "</div>";
}
function avia_add_sidebar() {
if(is_product()) {
$avia_config['currently_viewing'] = "shop_single";
get_sidebar();
}
}
add_action('init','ava534345953_init', 50);
Do not forget to add the css code. You may need to toggle or temporarily disable the Enfold > Performance > File Compression settings afterwards.
Best regards,
Ismael