You are here:  » Changing the title tag on search pages (wordpress)

Active Forum Topics


Changing the title tag on search pages (wordpress)

Submitted by ccgale on Wed, 2013-09-04 11:54 in

Is there any easy way I can modify the title tag generated by the search pages? At the moment it is coming out as Jeans | 6 | priceAsc | shopping | ETFTG which doesn't look good in the search engines.

Thanks,
Carl

Submitted by support on Wed, 2013-09-04 13:22

Hi Carl,

The important thing is that the titles are unique to avoid duplicate title issues, which is achieved easily by the inclusion of the page and sort parameters (if not default). However it is straight forward to modify, given the title:

Jeans | 6 | priceAsc | shopping | ETFTG

...could you post your preferred alternative, additional text can be included e.g. "Page", "Sorted by" etc. and from that I can post the appropriate modification for you...

Thanks!
David.
--
PriceTapestry.com

Submitted by ccgale on Wed, 2013-09-04 14:27

Hi

I would rather Jeans | 6 | ETFTG - ie I don't need shopping or the price filter in the title

Submitted by support on Wed, 2013-09-04 14:40

Hi,

To remove the sort, locate the following code around line 279 of pto.php

  if ($pto_sort != "relevance")
  {
    $title .= " | ".$pto_sort;
  }

...and either comment out or delete that block.

To remove the "shopping" part (which is the original title before the plugin custom parts are added, locate the following code at line 290:

  $content = $title." | ".$content;

...and REPLACE with just:

  $content = $title;

Hope this helps!

Cheers,
David.
--
PriceTapestry.com

Submitted by ccgale on Wed, 2013-09-04 15:06

Much better, thanks.