How to Change Favicon with JavaScript

This code comes in handy when you don’t have access to the head of the page and need to change the favicon.

 

Continue Reading

Category: Code Snippets

How to Add Retina Images to HubSpot Email and Page Templates

HubSpot CMS handles responsive images by default by creating different image sizes for different screen widths (using srcset). But with retina display images, you want to load higher resolution images and scale them down to 100%. Thankfully you can add ?noresize to the end of your image source to disable this dynamic resizing. In the… Read more »

Continue Reading

Category: Code Snippets

As a Web Developer, What Should I Know about SEO?

There are a lot of reasons why you might want to start developing a website. It could be a way to expand or establish your small business, or a way to organize a portfolio for your art. It could even serve as a personal website that helps job recruiters find you and learn more about… Read more »

Continue Reading

Category: Articles / Common Questions

How to Fire a jQuery Function When the Page is Loaded and Resized

When building responsive websites you often want to run a script when the page loads. But when you resize the window the layout breaks. You can use the on method to run your code if the page loads or has been resized.

Source

Continue Reading

Category: Code Snippets

Web Font Weight and Style Mixin [Code Snippet]

If you are using Google Fonts or a custom web font, you probably are writing different font weights and styles. These mixins combine the two to make it really easy to update a global font style in your stylesheet.

 

Continue Reading

Category: Code Snippets

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. Export HubSpot blog data to import into WordPress

Follow these steps: Create… 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. Step 1: Generate… 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