Anchor tag not working again after latest theme upgrade

I had this issue before and i remember fixing by adding code to the global JS file. I did that and it had fixed the issue,that time. I recently upgraded my Pro them to Version: 2.2.5. Now it is not working again and I cannot find the ticket in the forums that had the solution that worked before.

The page that is not working is here

If I simply copy the link and paste it in the location bar the anchor tag link works

Hello There,

I have inspected the page and it seems that there are JS codes present which may have contributed to a conflict. The page anchor link should have work in the latest release of Pro theme. In your case, it is not working maybe because of the script conflict. I would recommend that you temporarily remove your custom JS codes and test the site. You will know which script is causing it when you have removed the block and the link works.

Please let us know how it goes.


The code below from header.php breaks the functionality of the anchor scroll button

<?php

    // =============================================================================
    // HEADER.PHP
    // -----------------------------------------------------------------------------
    // The site header.
    // =============================================================================

    ?>
    	<link rel="shortcut icon" href="<?php echo get_stylesheet_directory_uri(); ?>/favicon.ico" />
        
        <!--Thumbnail Open Graph Meta Tags-->
        <meta property="og:title" content="BadDog Digital Productions, Inc.">
        <meta property="og:description" content="Web Development, 3D Modeling, Drone Services...Everyone else just BYTES!">
        <meta property="og:image" content="http://www.digitaldoghouse.com/wp-content/uploads/2018/05/BusinessCard_LRG-TEXT.jpg">
        <meta property="og:url" content="http://www.digitaldoghouse.com">
        
        <!--Twitter Thumbnail Open Graph Meta Tags-->
        <meta name="twitter:title" content="BadDog Digital Productions, Inc. ">
        <meta name="twitter:description" content=" Web Development, 3D Modeling, Drone Services...Everyone else just BYTES!">
        <meta name="twitter:image" content=" http://www.digitaldoghouse.com/wp-content/uploads/2018/05/BusinessCard_LRG-TEXT.jpg">
        <meta name="twitter:card" content="summary_large_image">
        

    <?php x_get_view( 'header', 'base' ); ?>

This version does not break functionality. Is it because the php code
<?php x_get_view( 'header', 'base' ); ?>

needs to load first before adding any additional objects to the header.php page?

<?php

// =============================================================================
// HEADER.PHP
// -----------------------------------------------------------------------------
// The site header.
// =============================================================================

?>
<?php x_get_view( 'header', 'base' ); ?>

	<link rel="shortcut icon" href="<?php echo get_stylesheet_directory_uri(); ?>/favicon.ico" />
    
    <!--Thumbnail Open Graph Meta Tags-->
    <meta property="og:title" content="BadDog Digital Productions, Inc.">
    <meta property="og:description" content="Web Development, 3D Modeling, Drone Services...Everyone else just BYTES!">
    <meta property="og:image" content="http://www.digitaldoghouse.com/wp-content/uploads/2018/05/BusinessCard_LRG-TEXT.jpg">
    <meta property="og:url" content="http://www.digitaldoghouse.com">
    
    <!--Twitter Thumbnail Open Graph Meta Tags-->
    <meta name="twitter:title" content="BadDog Digital Productions, Inc. ">
    <meta name="twitter:description" content=" Web Development, 3D Modeling, Drone Services...Everyone else just BYTES!">
    <meta name="twitter:image" content=" http://www.digitaldoghouse.com/wp-content/uploads/2018/05/BusinessCard_LRG-TEXT.jpg">
    <meta name="twitter:card" content="summary_large_image">

Hello There,

I have replied your other thread in details which will resolve your header.php issue.
Please check it here: https://theme.co/apex/forum/t/anchor-link-button-broken-again/40025/5

Best Regards.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.