Edit WordPress Page Source On-the-Fly with PHP

On-the-fly ways to use PHP to edit WordPress page source before it leaves the server. Both methods shown here change the page source code before the visitor receives it. None of these PHP methods permanently edit theme template files. None of these methods edit the database. Edits are made to the content output by WordPress … Read more

Make WordPress Theme Headers Shrink on Scroll

WordPress Code Snippet

Modern web design favors a top-fixed masthead that shrinks when a page is scrolled downwards. The masthead, also known as the header, is the top of the page that contains the brand logo and navigation bar. Makes sense to keep the header visible at all times and make the header shrink while the page is … Read more