I'm creating a theme, and I want to prevent the page from being scrolled when a user clicks 'Read More' and the code given in the Wordpress Codex is not helping me at all.
My functions.php
is exactly the same as the snippet in the Codex and the relevant line of my index.php
is:
<div class="content"><p><?php the_content(__('Read More')); ?></p></div>
Edit: I have a new, weird bug: the content of the Codex snippet is being shown as raw HTML in my blog and admin pages.
#someid
. Without knowing the details there is no way to answer though.