How to Prevent One Word Lines (widow orphan) In Website Paragraphs
Category: Code Snippets
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 »
What are the Open Sans CSS Font Weights?
Category: Common Questions
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;
How to Trigger HubSpot Popup Form on Button Click or Page Load
Category: Code Snippets
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. How to use this script Create pop up form Set targeting to… Read more »
How to Redirect Known Pages and Wildcard for Everything Else with htaccess
Category: Code Snippets
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 »
Open All Links to PDF files in a New Window
Category: Code Snippets
This finds all of the links pointing to PDF files and opens them in a new window. If you are using Chrome, you will need to enable popups for this to work. $(“a[href$=’.pdf’]”).each(function () { window.open($(this).attr(‘href’),”_blank”); });
How to track Google Ads Conversions with a JavaScript Application?
Category: Common Questions
I recently ran into an issue tracking Google Ads conversions with imported Google Analytics Goals. I was using a destination goal for a thank you page. This was setup properly but the website was using JavaScript to change the url destination and so did not refresh the page. This prevented the goal from running even… Read more »
Restrict Certain File Mime Types in WordPress
Category: Common Questions
I recently heard from a client saying their blog was loading very slowly. The issue was caused from a high resolution image in .tiff format which is generally used for print. In order to block these file types add the following plugin to your mu-plugins folder. Source <?php /* prevent uploading of .tif files. https://wordpress.stackexchange.com/questions/44777/upload-mimes-filter-has-no-effect… Read more »
Aw Snap! Error Google Chrome 78 Fix
Category: Articles
The most recent Google Chrome update 78 is causing some users to experience an Aw Snap! error. You may notice that it opens but you are unable to access the settings. Some have mentioned it might be caused by Symantec Endpoint. This error will probably be corrected in a future update but in the mean… Read more »
HubSpot vs MailChimp vs Moosend – Review & Comparison
Category: Articles
The main difference between HubSpot, MailChimp, and Moosend is what other functionality you want to have added to it. Also, you need to consider how robust the marketing automation builder needs to be for your business. If you are sending a lot of email with a small to medium sized team, HubSpot is a great… Read more »
How to Replace First Name with Default Text If It Doesn’t Exist in HubSpot Emails
Category: Common Questions
I recently was trying to send an email to a list containing different contacts but some did not have the First Name field filled in and was blank. So I did some google searches for a solution and came across these two posts: HubSpot forum topic and HubSpot forum topic 2. I tried the code shared… Read more »