Theme: Custom snippet in Head for default-simple.tpl

    • 58 posts
    November 29, 2017 9:36 AM EST

    Hi SE-Team!

    Thanks for bringing us the possibility in 4.9.3 to extend the theme default.tpl with a custom head.tpl.

    I'm reaching out to you because we extended this for default-simple.tpl as well and think this would be helpful for everyone.

    This is what we've done:

    /application/modules/Core/layout/scripts/default-simple.tpl (added around L 119)

    $currentThemeHeader = APPLICATION_PATH . '/application/themes/' . $themes[0] . '/head-simple.tpl';

    added after, around L 192 

    <?php if (file_exists($currentThemeHeader)) { require($currentThemeHeader); } ?>

     

     

     

    best regards, Sebastian

     

    • Moderator
    • 6923 posts
    November 29, 2017 10:38 AM EST

    Thanks for your suggestions. We'll look into this.