You are here:  » Inch Symbol in product titles using the wordpress plugin


Inch Symbol in product titles using the wordpress plugin

Submitted by newpbc on Thu, 2012-12-27 12:53 in

Hi David

Finaly got round to doing some work with the wordpress plugin
Just wondering how I can get the " symbol to display properly in my product tiltes

So it displays

LG 32LS570T Full HD 32" LED TV

Instead of

LG 32LS570T Full HD 32" LED TV

see for example

{link saved}

Also on brand and merchant pages what do I need to remove within the plugin to get rid of the words brand: and merchant: at the start of my titles

Submitted by support on Thu, 2012-12-27 15:35

Hi,

The tidiest solution would be a new filter - HTML Entity Decode - which will remove the quote entity at import time (any characters that need to be encoded are then encoded at display time which is more appropriate). You'll find the new filter code in this thread.

Regarding removal of merchant:, category: etc. within the title, in pto.php look for the following code at line 431:

$title = htmlentities($pto_q,ENT_QUOTES,get_settings("blog_charset"));

...and REPLACE with:

$title = htmlentities(str_replace(array("merchant","category","brand",":"),"",$pto_q),ENT_QUOTES,get_settings("blog_charset"));

Hope this helps!

Cheers,
David.
--
PriceTapestry.com

Submitted by newpbc on Thu, 2012-12-27 16:36

Hi David

Thanks for the quick responce dont see a linked thread

Also added that code dosent seem to make any changes

Regards

Anthony

Submitted by support on Thu, 2012-12-27 17:29

Hi Anthony,

Link to HTML Entity Decode filter added above, sorry about that!

Regarding the title, please could you post a link to a brand: search page on your site showing the problem (I'll remove before publishing your reply) and i'll check it out for you...

Cheers,
David.
--
PriceTapestry.com

Submitted by newpbc on Thu, 2012-12-27 19:21

Thanks thats David thats the inch symbols sorted

This is an example of what im looking to fix with the brands/merchants
{link saved}

Regards

Anthony

Submitted by support on Fri, 2012-12-28 09:47

Hi Anthony,

I see that it has had the desired effect in the HTML title (browser title bar) but I'm not sure what code is in place to display the first part of your page title on the search results page (class="nice_title") as the same search / replace operation would need to be applied to that...

Perhaps if you could email me your pto.php and pto_search.php I'll be able to see any changes in place and work out where to put the replacement for you...

Thanks,
David.
--
PriceTapestry.com