Block shows in edit but not in non-edit.
PermalinkOld Code:
<?php $bt_autonav->render('templates/header_nav/view'); ?>
New Code:
<?php
$autonav = new GlobalArea('Autonav');
$autonav->setBlockLimit(1);
$autonav->setCustomTemplate('global_autonav', 'templates/header_nav/view');
$autonav->display($currentPage);
?>
New Code works perfectly in edit mode but does not show in non-edit mode. Old code works both places. I have cleared all Concrete5 and browser caches and I get the same. I also have similar global area code in the same header that works perfectly.
Global area code that works in same header:
<?php
$a = new GlobalArea('Logo');
$a->setBlockLimit(1);
$a->setCustomTemplate('global_image', 'templates/header_logo_image/view');
$a->display($currentPage);
?>
What am I missing ?
Thanks,
Warren Bell

Select the global area here and approve the changes.
.../index.php/dashboard/blocks/stacks/view_global_areas