Adding code snippet just after </head>

Hi - I need to add a small PHP function just after the closing <head> tag.

If interested, the code is:

<?php flush(); ?>

Please can you advise how best to achieve this?

I’ve got PRO + CHILD theme setup

Hi Alistair,

Thank you for writing in, since you already have the child theme, you can follow the method provided here.

Or a much easier method provided here.

Let us know how it goes,
Cheers!

Thank you @friech, I appreciate your help.

You’re welcome, Alistair.

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