Put WordPress’ 4.4 oEmbed JS in your site footer

1 min read
Watb Team
A person working on code

Knowing which lead generation tools you’d like to put to use can often be the first roadblock on your journey towards gaining new business.

There are so many tools out there that it can be incredibly daunting for small businesses to know which tools should be a priority and which are worth paying for.

It’s very easy to get sucked into paying for a collection of lead generation tools that you never end up using, or ones that waste your time with leads that don’t actually have that much potential to turn into business.

A wise man once said that it’s more important to work smarter, not harder.

So instead of pouring all of your time, energy and resources into ineffective lead generation tools, focus in on just the essentials tools needed for lead generation and make sure that those are working to perfection.

Here are the three kinds are lead generation tools that we believe all small businesses should be using:

Customer Relationship Management (CRM) Software

CRM software is an essential lead generation tool because it enables you to store data about all of your prospects, leads and customers in one place.

Through this centralised hub you can gain a better understanding of where your leads are in their buyer’s journey and how far down the marketing funnel they are.

Track the success of your marketing attempts by using a CRM to review your click-through rate on CTAs (call-to-actions), your engagement on social media and the number of people that have opened your emails.

Screenshot of HubSpot's homepage

We recommend: Hubspot

Full disclosure, we’re Hubspot Inbound certified so maybe we’re a little biased, but Hubspot has some fantastic marketing software that enables small businesses to start capturing, tracking and converting leads all free of charge.

As proponents of Inbound Marketing, HubSpot really do put their money where their mouth is by demonstrating their value to you with a number of free services that are genuinely helpful for your business’s growth.

Their CRM is completely free forever (no need to worry about a dodgy trial period) and can store as many as 1 million of your contacts.

From this CRM you can create email templates, Facebook and Instagram lead ads and even conversational bots for your website.

Additionally, HubSpot’s free Marketing Hub includes:

  • Reporting dashboards that show which forms, pages, offers and traffic sources are driving the most conversions
  • Mobile-friendly pop-up forms for your website
  • A form collector that automatically captures submissions even if they come from a different tool
  • Kickback emails to help you follow up on form submissions
  • Contact and company insights including job title and social media profiles
  • Integration with external marketing services such as MailChimp, WordPress, Weebly, Drupal, Shopify and Magento

For those starting from the ground up, it might also be worth checking out HubSpot Academy, where you can find a wide range of free courses and videos on lead generation.

As your business grows, you can start to explore some of HubSpot’s paid-for services such as blog creation tools, calls-to-action and landing pages. But don’t run before you can walk - try out the free version first and see if it works for you.

With WordPress 4.4 came a raft of improvements, including a new oEmbed feature. In their own words:

“Starting with version 4.4, WordPress becomes an oEmbed provider as well, allowing any oEmbed consumer to embed posts from WordPress sites….”

“…this new feature means that any post (or basically any public post type) will now be embeddable. If you’re using pretty permalinks, the embeddable content will be available at example.com/your-post/embed/.

For most WordPress users this is great, and it’s not a feature we want to remove. You can if you insist by using this plugin.

However, if like us, your main concern was more JS in your site’s header, you can use these actions to move the code that this feature inserts into your site’s footer instead:

// Remove oEmbed discovery links from header and place in footer
remove_action( 'wp_head', 'wp_oembed_add_discovery_links' );
add_action( 'wp_footer', 'wp_oembed_add_discovery_links' );

// Remove oEmbed-specific JavaScript from the front-end and back-end header and place in footer
remove_action( 'wp_head', 'wp_oembed_add_host_js' );
add_action( 'wp_footer', 'wp_oembed_add_host_js' );

We haven’t tested whether this maintains the functionality however, so use at your own risk.

Related Posts

Posts you may also like