I just am a sucker for anything that is not common or anything beyond the regular. In jumping to a named link within the same page for instance, what happens normally is that as soon as you click on the anchor link, the page kind of flashed and you are on the destination link. If you’re not web savvy, you wouldn’t know whether you’re still on the same page, or whether you were transported up or down the page.
Anyway, this is how I did it for this post.
- Then, uploaded it to my ‘wp-includes/js’ folder.
I only did step 3 that way because I only wanted to show the smooth scrolling effect on this particular post (not site-wide). I am not very php savvy, so I don’t know if this is safe to do.(Probably, it is, because this is also how you insert the google adsense scripts on any part of a post). If I wanted to have the smooth scroll effect available site wide, I would need only to edit my header file and insert that line (in step 3) there instead.
If I knew how to make wp plugins, I would have created a plugin for this. Then I would have submitted it to the wordpress’ plugins site and requested to have it placed under the ‘not very useful plugins’ category. 🙂
Pictures: Oh, me and my son just watched the ‘Avatar’ movie. It’s still in my head so that explains why I used these images on this post.