How to Make a Fixed Header Align and Play Nice With the Page

Laptop with Code

Do you have a fixed header area on your website that is not playing nice with the rest of the page?  You can’t quite get the bottom of the fixed header to line up with top of the page content?

Maybe you tried manually adjusting the margin at the top of the content, but when the header height changes at different screen resolutions, what to do?

Well, there’s an easy fix that makes the margin completely dynamic and it uses jQuery.  Use this jQuery in your theme… Continue reading How to Make a Fixed Header Align and Play Nice With the Page

Automatic Table of Contents Sticky Magellan Menu for WordPress Posts

Magellan Menu

See that sweet Magellan menu over on the right sidebar (if you’re not viewing the AMP version of this page)? →

Pretty cool right?

  • It acts as a nice table of contents for the post (and it’s 100% automatic!).
  • You can click the links to smooth scroll down to that section.
  • As you scroll, the visible section is highlighted.
  • It’s also inside of an awesome Theia Sticky Sidebar.

Continue reading Automatic Table of Contents Sticky Magellan Menu for WordPress Posts

How to Remove & Forget Gitignored Files from a Git Repo

Forget Gitignored Files

If you have already been working in your git repository before you realized that you needed to add something to your .gitignore file, you may have found that it’s not as simple as updating your .gitignore file anymore.  The tracked files that you just decided to ignore won’t just magically stop tracking and disappear from git, oh no.

Luckily, it is actually very simple to accomplish this with just a couple commands. Continue reading How to Remove & Forget Gitignored Files from a Git Repo

Local Dev Setup With Wildcard Subdomain Vhost

Wildcard Subdomain Vhost

When setting up new local sites for development, skip the hassle with this game-changing setup that uses a single vhost with a wildcard subdomain so you never have to mess with vhosts ever again.

  • Don’t hassle with setting up a vhost every time
  • Don’t waste time adding more rows to your hosts file
  • Don’t mess with developing a site in a subdirectory where absolute links starting with “/” take you back to your localhost dashboard.

Continue reading Local Dev Setup With Wildcard Subdomain Vhost