How to Add Google Plus Authorship to a Shopify Site
Adding Google authorship to content is now an important step for many sites and content creators. Enabling your content to display its author gives your listings in the search engine results a potential increased CTR of over 20%.
Including it on your site is relatively straight forward and platforms such as WordPress make the process even easier with the brilliant SEO Yoast plugin. However, we found that adding G+ authorship to a Shopify site was slightly more difficult.
We searched high and low on the Shopify forums for an answer and although its incredibly useful resource we couldn’t find a straight forward way of achieving our goal.
Our aim was to add an author to every page of the site – all except product pages. So to do that we created a tiny bit of code that would allow us to do that. Here’s how.
To include Google Plus Authorship on your content pages of your Shopify site:
- Navigate to your Shopify dashboard
- Click themes > template editor
- Select ‘theme.liquid ‘ – This is the main template file and applies to all pages, including product pages, on your site.
- Include the code below:You can copy and paste the code from here:
{% if template != ‘product’ %} <a href=”[profile_url]?rel=author”>Google</a> {% endif %}
Here it is in action:
A product page without G+ authorship:
A normal page with G+ authorship:
But you’re not done yet! The final step is to link your Google plus account with your website. For a comprehensive guide on how to do this check out Googles authorship guide.
Related reading…
WordPress is Hacked Again: Cashnude.com Exploit Hack Solved
Over the years, we have seen plenty of WordPress hacks and thankfully they are usually fairly easy to diagnose. This bank holiday Monday we have fought a nasty one from cashnude.com a spammy website which opens up an adult chat as a pop up, under...
read moreHack on How to Track Shopify Sales in Google Analytics
Allowing users to purchase through PayPal skews sales data in Google analytics, all transactions are tracked as PayPal which isn’t ideal as we want to know which channel is performing better. However, there is a simple solution to overcome this...
read moreHow To Remove Pages From Google in 12 Hours
At Orchid Box we have gained a lot of experience in understanding the methods used by Google, especially how it caches and indexes websites. Sometimes clients’ website have urls they don\'t want to be exposed, searchable or even visible to the...
read more