FAQ: Avoid Scrolling when opening Individual Entry Archive
Question
I always use the »Entry Body« and the »Extended Entry« when creating a new entry. Then a »continue reading« link appears on my start page, pointing to the Individual Entry Archive. When clicking the link, the entry appears. However, it is scrolled vertically, so that the lines of the »Extended Entry« are on top of the screen. I do not like that. Can it be avoided?
Answer
You have to modify the »Main Index Template« for achieving that.
- Open your Movable Type project.
- Click on »Templates« in the left menu bar.
- Click on »Main Index.«
- A dialog will appear. In the »Template Body« textbox scroll down until you see the following lines...
<MTEntryIfExtended>
<p class="extended">
<a href="<$MTEntryPermalink$>#more">
Continue reading "<$MTEntryTitle$>"
</a>
</p>
</MTEntryIfExtended>
This is the tag code that conditionally creates the »continue reading« link. All you have to do is remove the "#more". It is the name of an anchor inside the target file.
<MTEntryIfExtended>
<p class="extended">
<a href="<$MTEntryPermalink$>">
Continue reading "<$MTEntryTitle$>"
</a>
</p>
</MTEntryIfExtended>
By removing it, the target will no longer scroll to this anchor.
mgs
Feedback is welcome!
What do you think about this entry? Was it interesting or boring? I would like to hear your comments. If the text was helpful, please consider setting a link to http://www.movable-type-weblog.com/.
No spam please!
For protecting this weblog I have installed the MT-Approval Plugin. You have to view a new comment in preview mode, before it is saved on the server. Moreover, I will view your comment manually, before it is published. You can find more information on the subject in the entry Weblog Spamming Basics.
With an active TypeKey session, your comment will be published immediately.
Post a new comment
TypeKey has temporarily been disabled at this location. Please create your comment without using TypeKey or log in from the preview dialog.

