Viewing 3 replies - 1 through 3 (of 3 total)
  • Add this code to your child theme’s functions file, it should remove all characters beginning with#sthash on page load (if the hashes are being added frequently after load, then mention that)

    add_action('wp_enqueue_scripts', function() {
    	wp_enqueue_script('jquery');
    });
    add_action('wp_footer', function() {
    	?>
    		<script>
    		jQuery(document).ready(function($){
    		    var pageurl = window.location.href;
    		    if( pageurl.indexOf('#sthash') >= 0 ) {
    				var flush = pageurl.substring(0, pageurl.indexOf('#sthash'));
    				window.history.replaceState( {} , '', flush );
    			}
    		});
    		</script>
    	<?php
    });
    Thread Starter Deepak Raghav

    (@deepak-raghav)

    Thanx Samuel

    Thread Starter Deepak Raghav

    (@deepak-raghav)

    In the player score card. The total of his scores and other statics is not showing.
    check this www.ipl2016liveupdates.com/player/rohit-sharma-ipl-career/

    And also one more there is problem in seasons continuity series. Just check it out. 2015 is coming between 2013 and 2014.
    Also check it

    Please solve it

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘how to remove #sthash code from url’ is closed to new replies.