Are you working on a WordPress theme that uses Zurb Foundation framework? Would you like to implement your own lead / opt-in popup using Foundation’s Reveal component?
The one I built even waits until you visit a 2nd page, and on that 2nd page, it waits 10 seconds before popping up. Continue reading How to Make Your Own Opt-in Popup with Foundation Reveal Modal
Ever run into the problem where you have a string, and you need set the value of a select dropdown to that string, but the string you have may not match any of the option values, but instead might match the label of an option?
I ran into that and devised this nice solution that worked out very well. Continue reading Set the Value of a Select Dropdown Using Its Options’ Text Labels
If you’re using ACF (Advanced Custom Fields) and want a dropdown list of US states, then look no further.
Simply copy and paste this into the list of options in your ACF select field.
Continue reading List of US States for Select Dropdown Field in ACF
In order to make local WordPress development as seamless as possible with collaboration between multiple developers, I’ve devised a process where local versions of WordPress sites can dynamically use the database and media uploads from the staging server. Continue reading How to Setup a Local WordPress Development Environment using DB and Media from Staging
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
So, you want to use a shortcode, and you want to put it in a widget. You probably found out that the shortcode doesn’t process, but instead displays the shortcode text on the page. Lame, right?
Luckily there’s a really easy quick fix for this.
Simply add this code to your theme’s functions.php file Continue reading How to Enable Shortcodes in WordPress Text Widgets
I’ve made a ton of websites over the years, and somethings are done every time. Redirects in the .htaccess file is one of those things that’s always on the checklist.
Don’t worry about Googling how to do each redirect each time. Just bookmark this page. Continue reading How to Redirect to Force WWW and HTTPS Using .htaccess File
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
A sticky sidebar is a great way to improve the user experience of just about any website. When a website has a sidebar that is not sticky, then when you scroll down below the bottom of the sidebar, then you just have this awkward white space on that edge of the site. What’s the point of that white space, when the sidebar could stay there? Continue reading How to Add a Scrolling Sticky Sidebar to WordPress
In some WooCommerce setups, customers who select an offline payment (like Cash on Deliver or Check/Cheque) and then change their mind and go into the order to pay for it using an online method find that they are unable to pay for their pending order because it says the item is out-of-stock. Continue reading WooCommerce: How to Fix Can’t Pay for Order Because “Out of Stock” Error