Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if(is_page('page title')){ ?>
- <script type = "text/javascript" >
- history.pushState(null, null, 'page-slug');
- window.addEventListener('popstate', function(event)
- {
- history.pushState(null, null, 'page-slug');
- });
- </script>
- <?php }?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement