Search code examples
htmlblogger

Blogger Soho theme: How to modify function of Jump Link button?


I am using the Blogger SOHO theme for my Blog: https://www.firozemistry.com

In the Featured Post, clicking on the Jump Link "Open" opens the page after the first line of text. How do I modify the HTML code to make the Jump Link open the page right at the top?

I have tried poking around in the HTML code of Featured Post widget, but I can't figure out how to do it.

I am a novice, and not well versed in HTML, so I would be most grateful in any help. Thanks in advance!

Regards, Firoze


Solution

    • Go to Theme > Edit HTML
    • Click anywhere inside the code area and press CTRL + F
    • Search for fragment "more" and remove it

    Update

    Put this code before </body> tag to remove #more from link href

    <script>
        var link = document.querySelector('.jump-link a');
        link.href = link.href.replace('#more', '');
    </script>