WooCommerce: How to insert filtered attribute(s) in page title of archive?

Question

I am using WooCommerce and I am trying to find a way to update the archive page default title <title></title> with the selected attribute(s) when the results are filtered.

For example:

http://example.org/product-category/shoes/

The archive page title is:

<title>Shoes</title>

But, when I filter it (via the filtered widgets included with WooComerce).

http://example.org/product-category/shoes/?filter_color=red

The archive page title still shows:

<title>Shoes</title>

What I would like it to show:

<title>Red Shoes</title>

Is this possible?

0
Jeremia 5 years 2016-12-08T13:33:57-05:00 0 Answers 73 views 0

Leave an answer

Browse
Browse