How to Visually See What Your jQuery Selection is Selecting

I was recently working on form validation and wanted to mark a.form-group as successful if it contained a particular icon inside the label. The icon was set using PHP depending if the data existed in the database. I was writing .prev() and .parent() to try and select the wrapping .form-group but it wasn’t working and… Read more »

Continue Reading

Category: Code Snippets / Tutorials

How to Migrate a HubSpot Blog to WordPress

If you are looking for a way to migrate your HubSpot blog to WordPress there isn’t a one click option unfortunately. However, by following the steps below you can create a CSV file of the data to import into your WordPress site. Table of Contents Export HubSpot blog data to import into WordPressGet a list… Read more »

Continue Reading

Category: Tutorials

How to Get a List of WordPress PDF, Image, Post, or Page URLS

Below are two PHP scripts you can use to help get a list of URLs of content in your WordPress site. I use these when I am migrating posts or media library files to another sites without using a plugin. Follow the steps below to use these scripts Open a text editor and copy and… Read more »

Continue Reading

Category: Code Snippets

How to Create a List of Urls and Meta Titles from a Domain

I was working on a site migration and I needed to create an excel spreadsheet of all of the urls, page titles, and meta description. This document would then be shared with the copywriters to work on editing the page copy. I found some nice online tools to make this process easy. Table of Contents… Read more »

Continue Reading

Category: Tutorials

How to Prevent One Word Lines (widow orphan) In Website Paragraphs

I am often adding padding to the left and right of paragraphs to force copy down to prevent one word on a line. Or even worse, I add <br> to a word on the line above to prevent the word by itself. But this causes issues with responsive design because the <br> changes position breaking… Read more »

Continue Reading

Category: Code Snippets

What are the Open Sans CSS Font Weights?

I often want to use different font weights for Open Sans and so am adding them here for quick reference later. Open Sans light font-weight: 300; regular font-weight: 400; semi-bold font-weight: 600; bold font-weight: 700; extra-bold font-weight: 800;

Continue Reading

Category: Common Questions

Trigger HubSpot Popup Form on Page Load or CTA Click

HubSpot provides the ability to display a pop up form with various triggers (exit intent, after 7 seconds, etc.) But what if you want to show it immediately or when a button is clicked? Below is some javascript to help achieve this functionality.

 

Continue Reading

Category: Code Snippets

How to Setup a Virtual Host Using Wamp

Create your project directory c:/wamp/www/project-name Open Wamp & Click Add a Virtual Host Fill out both of the inputs outlined in read enter the name of your site. I use projectname.test Enter the path to the directory you just created in step 1 Clear Hosts DNS Cache Open command line and enter ipconfig /flushdns Restart… Read more »

Continue Reading

Category: Common Questions

How to Export & Import mysql Database from Command Line

I was recently working on creating a local instance of a WordPress site and was using Wamp. When I was importing the database it was throwing an error (mysql error 2006 mysql server has gone away) because the packet size was too large. I used the command line to import the database and increase the… Read more »

Continue Reading

Category: Common Questions

How to Redirect Known Pages and Wildcard for Everything Else with htaccess

I recently worked on a project which needed me to shut down a WordPress blog and migrate it’s content. I had about 20 posts and pages that were going to migrate but everything else was going to be deleted. Since htaccess runs their commands from the top to the bottom, place your known redirects above… Read more »

Continue Reading

Category: Code Snippets