Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #14420

    When clicking on a book here

    http://buechergildehamburg.de/fachbuch/

    the single product page jumps to an anchor #tab-description

    How to remove this, so that the page opens normally?

    Thank you!

    #83398

    Hello,

    Open your footer.php and place this code above the </body> tag.

    <script type="text/javascript">
    jQuery.noConflict();
    setTimeout(function() {
    if(location.hash) {
    window.scrollTo(0, 0);
    }
    }, 1);
    </script>

    Regards,

    Ismael

    #83399

    Hi Ismael

    I did embed this in the footer.php here:

    <?php

    /* Always have wp_footer() just before the closing </body>

    * tag of your theme, or you will break many plugins, which

    * generally use this hook to reference JavaScript files.

    */

    avia_option(‘analytics’, false, true, true);

    wp_footer();

    ?>

    <script type=”text/javascript”>

    jQuery.noConflict();

    setTimeout(function() {

    if(location.hash) {

    window.scrollTo(0, 0);

    }

    }, 1);

    </script>

    </body>

    </html>

    but it did not make a change, so I removed it again.

    #83400
Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘remove anchor in single product page ?’ is closed to new replies.