I have this installed from here: http://www.pricetapestry.com/node/5699
I want only h1 to not have Merchant, Category or Brand. I can change the code to, but how do I make it work for only h1?:
str_replace(array(":","merchant","category","brand"),array("","","",""),$q);
Hi,
Rather than change $q, instead where you are outputting your h1 tag using, for example;
<h1><?php print htmlspecialchars($q,ENT_QUOTES,$config_charset); ?></h1>
...make the replacement directly at this point; for example;
<h1><?php print htmlspecialchars(str_replace(array(":","merchant","category","brand"),"",$q),ENT_QUOTES,$config_charset); ?></h1>
(note where all replacements are the same, second parameter in call to str_replace does not need to be an array...)
Hope this helps!
Cheers,
David.
--
PriceTapestry.com