February 17, 2014 | Chris Butterworth
  • Blog
    • Technical SEO
    • Programmatic Display
    • Industry News
    • CRO
    • Useful Bits
  • Tools
  • Research
  • Digital Strategist
  • Pitch
Chris Butterworth
  • Blog
    • Technical SEO
    • Programmatic Display
    • Industry News
    • CRO
    • Useful Bits
  • Tools
  • Research
  • Digital Strategist
  • Pitch

Chris Butterworth
Digital Marketing Consultant


written on:

February 17, 2014

For when you don't want to do them all manually

A Simple PHP Script for Adding hreflang

written by Chris Butterworth on February 17, 2014
Hreflang in Use
  • SEO Tools
  • Technical SEO

The code in this script lets you specify the domains you’re using, then simply returns the file path at the end.

This is a simple, low overhead way of creating a hreflang tag for PHP sites. I specifically used this for WordPress, adding it in the header template.

Share
  • spread the world
23240 views
3 Comments
The most intelligent man in the world?

Working a Digital Solutions director Chris has worked with some of Australia, and the worlds biggest brands to improve their visibility online, increase engagement and drive revenue.

Categories

  • CRO
  • Events
  • Featured
  • Fun With SEO
  • Industry News
  • Programmatic
  • SEO Research
  • SEO Tools
  • Technical SEO
  • Uncategorized
  • Useful Bits

Chris Butterworth

  • Arrows PNG
  • Digital Strategist
  • Home
  • Inbound Marketing Consultant
  • music
  • SEO
  • Who Is The Most Intelligent Man In The World?
  • Wicked & Awesome
Powered by WordPress Theme: Maine by United Themes