Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #454149

    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

    #454638

    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

    #454774

    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

    #454828

    Hi!

    includes/helper-main-menu.php, line 105:

    echo avia_logo(AVIA_BASE_URL.'images/layout/logo.png', $addition, 'strong', true);
    

    Cheers!
    Josue

    #461459

    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?

    #461665

    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

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.