You are here:  » Search term as h1 title

Active Forum Topics


Search term as h1 title

Submitted by wesse249 on Thu, 2018-05-03 06:37 in

Hello David,

When searching in your demo wordpress store you see the search term as pagetitle. Can you tell mee how you create this?

http://wordpress.webpricecheck.co.uk/shopping?pto_q=Samsung+Extra+Baby+Monitor+Camera+for+Samsung+SEW-3020-22

Thank You Jan Roel

Submitted by support on Thu, 2018-05-03 07:22

Hello Jan,

In the changes you have recently made to show category / brand etc. as the page title from this comment, in the else { ... } block, which is for the header title for normal queries you will now have this code at line 646:

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

...REPLACE with:

        $title = htmlentities($pto_q,ENT_QUOTES,get_option("blog_charset"));
        $title_override = TRUE;

(it was actually only in place on the demo server as a test which I'd forgotten to remove..!)

Cheers,
David.
--
PriceTapestry.com