diff --git a/themes/beautifulhugo/layouts/partials/footer_custom.html b/themes/beautifulhugo/layouts/partials/footer_custom.html
index f1442097b063c0d115a3d0545de536852e8dd91b..b37ac3fd6bb204fdb8163d5c624ce7baba033a56 100644
--- a/themes/beautifulhugo/layouts/partials/footer_custom.html
+++ b/themes/beautifulhugo/layouts/partials/footer_custom.html
@@ -1,4 +1,4 @@
 <script src="https://cdnjs.cloudflare.com/ajax/libs/anchor-js/4.2.2/anchor.min.js"></script>
 <script>
-anchors.add('h1,h2,h3,h4,h5,h6');
+anchors.add('h1,h2,h3,h4,h5,h6').remove('.page-heading > h1');
 </script>