WordPress Append HashTag to PermaLink

Motivation: Running a site with a big banner header — of course this decision must be weighed itself — on a user screen with low vertical res (e.g. 1024 x 768), the homepage would only show the header link of the first post summary (we’re also using “Add Posts to Page” plugin, with it’s ‘read more’ summary function)… clicking on the post would then nav to relatively same thing, staring at a big banner.

Simple potential solution: Quick inspection of page structure proved that simply jumping to #main would do dandy to scroll content well into view… it seemed like a simple matter of selecting wp-admin > Settings > Permalinks > Custom Structure and slapping #main on the end… but no, of course that’s too easy…WP strips # hash tag out upon save… searched around quite a bit and all suggested solutions are long hacky affairs of forcing the jump after the page is rendered…

SOLVED: Skip the admin UI and simply modify the database => select * from wp_options where option_name like ‘%link%’

Leave a Reply