Woo Google Product Feed Plugin conflict with Global Block

Hey team.

I’ve used Global Blocks to insert some html into the WooCommerce product description which works perfectly.

When I activate “Google Product Feed” by from the Woo Marketplace my Global blocks are disrupted and force output data as set by the Woo description box. See private notes for images.

I have stressed to Woo that this is not Themeco’s problem as the Global Block works exactly as I want it to without their plugin but they have asked for the following information:

All I’m suggesting is that the most effective way of narrowing down what that is is to engage with the Theme.co team to understand where those inline styles are generated to see if they can shed any light on what that conflict may be. Once we have some feedback from them about how that is hooked in, or what it’s dependent on we can then review what might be causing the issue and the best way to fix it.

Could you shed some light on this? I totally understand if you’re not prepared to but figured it be worth an ask.

Hello @j300bac,

Thanks for writing in! I have investigated the issue and this is not a conflict. It is apparent that the Woocommerce Product Feed filters any html codes in the product descriptions. It removes the styling of the global block which is why it is no longer red nor styled. I would recommend that you contact the creators of the plugin and ask them how you can exempt the global block from being parsed or filtered so that the styles will still display.

Kindly let us know how it goes.

Hi RueNel,

So the Woo Author has responded with:

Blockquote
Hi;

I’m afraid that’s not correct. The extension does not filter any frontend output at all.

Please can you ask them:

  • Which file / file(s) are responsible for generating those inline styles
  • What hook / filter they’re generated on
  • Whether they rely on output buffering

Thanks

Hey J,

The Global Block styles are echoed on the page. You can see the code responsible for that in \wp-content\themes\pro\cornerstone\includes\classes\styling\class-styling.php. The Woo Google author can start investigating from this line echo "<style>$output</style>"; in that file.

There's a mechanism that might work for your setup though. Try adding the code or constant below in your wp-config.php. The explanation for that can also be found in the file I mentioned.

define('CS_STRICT_LATE_STYLES', true );

Hope that helps or at-least will lead the plugin developer to the solution.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.