The Code Tribe blog

A technology blog covering everything from WordPress to single-page application frameworks such as React and Vue

How to add arrays to Vue Meta

When working with the vue-meta package in your Vue or Nuxt app, you may need to add arrays of data into your head. For example, multiple article tags or several images.

Read article

Merge specific files from a branch in Git

Sometimes, you may want to merge specific files from a branch in Git. For example, when your develop branch has many commits or changes you don't want to merge.

Read article

Calculate distance between pins on a map using Javascript

In this tutorial we'll be using the haversine formula to calculate the distance between pins on a map (such as Google Maps) in metres.

Read article

Supercharge your WordPress themes with Tailwind and Gulp

Tailwind is a powerful utility-first CSS framework for quickly building websites and web-apps. In this tutorial, learn how to use it in your WordPress theme with Gulp.

Read article

How to get posts from a custom post type

This tutorial covers the simplest method to get posts from a custom post type and loop through them to display them on a page.

Read article

Add pagination to Nuxt Content

In this tutorial, learn how to add pagination to Nuxt Content. This is useful for any paginated content, such as blogs and documentation sections.

Read article

Strip code blocks from markdown

Learn how to strip code blocks from markdown using Javascript. Useful for RSS feeds and when you need more control over your markdown output.

Read article

How to add Google Adsense to Nuxt

When signing up to Google Adsense you are required to add a code snippet into the head of your website. Here is how to add this to your nuxt project.

Read article

How to use Sentry with Fastify

How to use Sentry with the Fastify Node.js framework including environments and releases to get the most from your Sentry dashboard.

Read article

Next page