Categories
computer engineering

How to display only specific categories on shop page on WooCommerce

I have been looking for this for a while with no luck. Finally I found some code that with small alterations worked. There can be other more effective solutions for this out there, but I am not aware of them.

So here it is.

Categories
computer engineering

Alter webpage title on Joomla and K2 for SEO purposes

Recently, I  had to alter the <title> tags of a website built with Joomla CMS (version 1.5.x) and the powerful K2 content component, for SEO purposes. The problem was that the sitename that you define on the Joomla site settings was prepended to all title tags in all pages. For example if we suppose that the site name is “Sample site name”, the titles on my webpages where as following:

  • Homepage: Sample site name
  • Article pages: Sample site name – Article Tile

This is unwanted behaviour for SEO (and not only SEO) reasons. I don’t know if this is an issue only for websites using the K2 content component or a genaral Joomla issue. Anyway, the desired behavior is something like the following: