I have logos that change depending on a cookie for the page.
I want to keep those logos from caching by using the Late initialization from Total Cache so I need to add the following html comment to the area where the logo / header is generating.
<!--/mfunc <?php echo W3TC_DYNAMIC_SECURITY; ?> -->
Header / logo code
<!--/mfunc <?php echo W3TC_DYNAMIC_SECURITY; ?> -->
Can you please tell me where i should insert this?
Thanks,
Chad
Hey Chad
Please go to Enfold/framework/php folder and open function-set-avia-frontend.php file and edit logo function as needed
Cheers!
Yigit
Thanks Yigit,
I don’t think the mfunc will do much good with this document. Could you possibly point me as to where the php statement is called to display the logo on the page?
Thanks,
Chad
Hi!
includes/helper-main-menu.php, line 105:
echo avia_logo(AVIA_BASE_URL.'images/layout/logo.png', $addition, 'strong', true);
Cheers!
Josue
I still haven’t had much success getting this to work. Would I be able to try this on the entire header to include the logo and the menu?
Hi!
You may need to do the conditional in header.php instead then, this line calls the whole header:
get_template_part( 'includes/helper', 'main-menu' );
Regards,
Josue