How to Dynamically Set BigCommerce Title Tags

BigCommerce does not provide an easy way to make bulk title tag changes in their admin. However you can update your theme files to dynamically set the title tag based on the template being used. Below is what I have used with custom stores I have built.

 

Continue Reading

Category: Code Snippets

How to Remove HubSpot CTA Button Strings in HubSpot to WordPress Migration

When migrating a HubSpot blog to WordPress or another CMS you will often find text strings in your articles that look like this {{cta(‘4cdfhg-a57e-dfh-dfh-5c6dfhgdfhdfgc’,’justifycenter’)}} Most likely you are going to replace those with a new button pointing to a landing page but that takes time to update. Also doing a database find and replace would work… Read more »

Continue Reading

Category: Code Snippets

WP All Import Export Subset of Posts by Slug Array [code snippet]

When performing a WordPress blog migration you sometimes just need to export a certain number of posts vs the entire collection. The easiest way I have found to do this is by performing a custom query using the list of posts by their url slug.

 

Continue Reading

Category: Code Snippets

Embed HubSpot Form in WordPress, Customize CSS, and Hide Fieldset Margins on Hidden Fields [code snippet]

When you embed a HubSpot form on an external site you can add css: ‘ ‘ to the embed code to remove the default form styles. If you have hidden fields the fieldset could have a margin or padding applied from your website stylesheet. This is common because you want a fieldset to have some… Read more »

Continue Reading

Category: Code Snippets

WooCommerce Product Category and Terms Select Filters [code snippet]

The code below will help you add a form select filter for Woocommerce online shop on WordPress.

   

Continue Reading

Category: Code Snippets

How to Remove Default HubSpot CTA Styles

HubSpot allows marketers to create custom styled CTA buttons. This can be a problem if you have a large team who may not know how to follow brand guidelines. This creative freedom can make buttons look inconsistent across your website. You could educate all of your users to never create custom styles. Or you could… Read more »

Continue Reading

Category: Code Snippets

Add Custom Info Widget to WordPress Admin Dashboard [code snippet]

The snippet below helps you customize the default WordPress admin dashboard. Sometimes the dashboard contains too much information and you want to simplify it for you or your clients. The code below will help you hide existing widgets and add a custom one. In this example I added a user guide to help new users… Read more »

Continue Reading

Category: Code Snippets

How to Redirect WWW to non WWW WordPress [htaccess snippet]

Below are two code recipes for your htaccess file to redirect different versions of your domain. Once you have things added you can use this redirect testing tool to verify all the versions of your domain are redirecting properly.

Continue Reading

Category: Code Snippets

HubSpot CMS Site Search Input Module Override

HubSpot provides a default module to perform a site search. By default it searches website pages and blog posts. But what if you want to override this and only search blog posts? Below is an embed snippet to help you do just that.

Continue Reading

Category: Code Snippets