You are here:  » Extra Text above page


Extra Text above page

Submitted by marco@flapper on Mon, 2012-01-09 09:26 in

Hi,
I upgraded to the new version and now I now I see some extra text above the page. Any idea what is making that to display?

Submitted by support on Mon, 2012-01-09 09:41

Hi Marco,

I checked the page source and it's coming out as part of the header. The latest version implements a different way to override header interaction with your theme / other plugins; so having upgraded if you go to wp-admin > Settings > PriceTapestry.org and then scroll down to Advanced and set Header Exclusivity to TRUE then Save. That should resolve the pages...

Cheers,
David.
--
PriceTapestry.com

Submitted by marco@flapper on Mon, 2012-01-09 13:07

Hi,
I noticed it is on TRUE so I tried False and then it doesn't show. But is that the way it should work?

Submitted by support on Mon, 2012-01-09 14:11

Hi Marco,

I've double checked and there shouldn't be any content generated by the plugin header hook outside of the appropriate meta tags. Please could you email me your current pto.php and I'll check as I know i've been working with you on various modifications and there may have been some debug code leftover...

Cheers,
David.
--
PriceTapestry.com

Submitted by marco@flapper on Wed, 2012-02-01 07:45

Hi,
Any luck in investigating this further? I discovered that when I have $pto_config_headerExclusivity my header banner is dissappearing from the Pricapestry Pages.

{link saved}

Submitted by support on Wed, 2012-02-01 09:20

Hi Marco,

It looks like your banner is a applied as a background image by a style sheet that doesn't get included when Header Exclusivity is set to TRUE however the main reason for using header exclusivity is to prevent incorrect canonical links from being generated so it may be safe to enable the wp_head hook if the canonical is only being generated by the default Wordpress canonical handling rather than your theme or another plugin.

To re-enable other head function, look for the following code at line 150 of pto.php:

unset($GLOBALS['wp_filter']["wp_head"]);

...and either comment or delete that line...

Hope this helps!

Cheers,
David.
--
PriceTapestry.com

Submitted by marco@flapper on Wed, 2012-02-01 09:30

Hi,
I want the canonical link for PT generated pages so that wouldn't be a solution for me.

But strangely enough I discoverd the the following.

I set Header Exclusivity to False and checked. And too my surprise the Extra text above the page isn't displayed anymore.

I'm still working on the website and installed, deinstalled some plugins so maybe that has a relation with the issue of Extra text appearing above the page.

So for now I'm ok. I'll report back when I find some issues.

Submitted by support on Wed, 2012-02-01 09:35

No worries Marco; with the above line commented out you would still get PriceTapestry.org's generated canonical link - the only question is whether another plugin would be generating one also via the wp_head hook in which case the may conflict but otherwise it should enable your theme to insert other aspects of the HTML head element that may be otherwise have been suppressed...

Cheers,
David.
--
PriceTapestry.com

Submitted by marco@flapper on Wed, 2012-02-01 09:44

thanks for the clarification.