Doing things the WordPressy Way Yes, technically it’s possible to just drop scripts into template files, but it’s not the correct method to use on WordPress sites. WordPress is pretty particular on how it handles JS. Register Scripts via functions.php Just a heads up, the functions.php file is pretty sensitive. WordPress requires everything in functions.php…
Page Template (Best for Single Pages) If you only need to call a different sidebar on a single page and that page is totally unique, and there’s no need to have a plan for children of those pages, then a simple page template should do the trick. Just go to your parent theme, copy page.php…
Method 1: Firefox (not recommended) In the Firefox address bar, type about:config. You’ll be greeted with a warning. Click “Accept the Risk and Continue”. Next, you’ll see a search bar where you can search for specific preferences. If you made it this far, there’s a good chance you know exactly the setting you’re looking for.…
Today I ran into a situation where I was getting a new user registration every half hour for the entire afternoon. I came across this solution that will block registrations by email domain. First, it blocks registrations by email domain. This simple denial of registration does not require WordFence, as it’s just a really useful…
Select Your Database To search and replace using phpmyadmin, first you’ll need to select and open the database you want to run the search and replace query on. Once you’ve selected it, you’ll see the tabs across the top of the screen change. Execute Query Click on the SQL tab at the top, and you’ll…
Project Tasks Convert a traditional e-commerce website to a subscription-based website with irregular renewal times. Create a fully-automated email campaign that welcomes new subscribers and reminds existing subscribers of their renewal one week before. Create a “virtual gym” that restricts digital content (videos, PDFs, and web pages) to paid subscribers. Inside the “virtual gym” members…
position: sticky vs position: fixed In CSS, you can use both position: sticky and position: fixed to make any WordPress block sticky, but there are some important differences that should be noted. position: sticky keeps that element within the document flow. Great for things like columns and sidebars that have content above them. When the…
As a web developer, it’s always a good idea to have a good working local environment for testing. Let’s dive into how to host multiple local sites using XAMPP and VirtualHosts. XAMPP Install You can download and instlal XAMPP over at https://www.apachefriends.org/download.html. XAMPP includes Apache and all the necessary setup to get your environment off…
Let’s take a look at how to customize the default WordPress login page without using any plugins. Changing the Logo First, open your functions.php file in your child theme and drop in the following function: Just keep in mind that get_template_directory_uri() returns the root directory of your parent theme. To return the root directory of…
Let’s dive into how to add custom fonts to WordPress without using any plugins. Choose a Font Originally, I was using a font called “Arrow” from DaFont. This actually ended up giving me problems later on, something I’ll cover later. Convert to WOFF2 (if you need to) Any font in the entire world. Just make…