Hi,
please help:
produckt url send not to top of product page.
Only to aditional information (“Dodatkowe informacje” on my page).
See my shop:
category link, than press any product:
http://zkm.org.pl/kategoria-produktu/kule-i-polkule/
<?php if(isset($archi_option['header_layout']) and $archi_option['header_layout']!="htop_page" ){ ?>
/* Page Scroll to id fn call */
jQuery(".mainmenu li a[href^='#'],a[href^='#']:not(.woocommerce-tabs ul li a, .vc_tta-panel-heading a, .vc_tta-tabs-list li a), a.scroll-to").mPageScroll2id({
highlightSelector:".mainmenu li a",
offset: 0,
scrollSpeed:750,
scrollEasing: "easeInOutCubic"
});
<?php }else{ ?-->
/* Page Scroll to id fn call */
jQuery("#mainmenu li a[href^='#'],a[href^='#']:not(.woocommerce-tabs ul li a, .vc_tta-panel-heading a, .vc_tta-tabs-list li a), a.scroll-to").mPageScroll2id({
highlightSelector:"#mainmenu li a",
offset: 68,
scrollSpeed:750,
scrollEasing: "easeInOutCubic"
});
<!--?php } ?-->
Find and replace by this code in your functions.php file
After use Your code I get error. But I chnage it and works:
<?php if(isset($archi_option['header_layout']) and $archi_option['header_layout']!="htop_page" ){ ?> /* Page Scroll to id fn call */ jQuery(".mainmenu li a[href^='#'],a[href^='#']:not(.woocommerce-tabs ul li a, .vc_tta-panel-heading a, .vc_tta-tabs-list li a), a.scroll-to").mPageScroll2id({ highlightSelector:".mainmenu li a", offset: 0, scrollSpeed:750, scrollEasing: "easeInOutCubic" }); <?php }else{ ?> /* Page Scroll to id fn call */ jQuery("#mainmenu li a[href^='#'],a[href^='#']:not(.woocommerce-tabs ul li a, .vc_tta-panel-heading a, .vc_tta-tabs-list li a), a.scroll-to").mPageScroll2id({ highlightSelector:"#mainmenu li a", offset: 68, scrollSpeed:750, scrollEasing: "easeInOutCubic" }); <?php } ?>
Hi,
please help:
produckt url send not to top of product page. Only to aditional information (“Dodatkowe informacje” on my page). See my shop: category link, than press any product: http://zkm.org.pl/kategoria-produktu/kule-i-polkule/
direct product link: http://zkm.org.pl/shop/produkt/kule-i-polkule/kula-nierdzewna-fi424mm-gwintem-m8m10-szlifowana-aisi-304/
How to fix it? I want to see always the top of product page.
Thanks.
Hello,
Please edit code in your functions.php file:
Find and replace by this code in your functions.php file
Thank you
After use Your code I get error.
But I chnage it and works:
<?php if(isset($archi_option['header_layout']) and $archi_option['header_layout']!="htop_page" ){ ?>
/* Page Scroll to id fn call */ jQuery(".mainmenu li a[href^='#'],a[href^='#']:not(.woocommerce-tabs ul li a, .vc_tta-panel-heading a, .vc_tta-tabs-list li a), a.scroll-to").mPageScroll2id({
highlightSelector:".mainmenu li a",
offset: 0,
scrollSpeed:750,
scrollEasing: "easeInOutCubic"
});
<?php }else{ ?>
/* Page Scroll to id fn call */ jQuery("#mainmenu li a[href^='#'],a[href^='#']:not(.woocommerce-tabs ul li a, .vc_tta-panel-heading a, .vc_tta-tabs-list li a), a.scroll-to").mPageScroll2id({
highlightSelector:"#mainmenu li a",
offset: 68,
scrollSpeed:750,
scrollEasing: "easeInOutCubic"
}); <?php } ?>
Hi,
I see it work fine.
i dont see notice error