Okay
  Public Ticket #1195659
Produckt url send not to top of product page
Closed

Comments

  •  2
    online1234 started the conversation

    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.

  •  2,005
    Ocean replied

    Hello,

    Please edit code in your functions.php file:

    <?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

    Thank you

  •  2
    online1234 replied

    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 } ?>

  •  2,005
    Ocean replied

    Hi,

    I see it work fine.

    i dont see notice error