header_required.php core file taking precedence
Permalink
Hi,
I'm want to edit header_required so that I can load the newest version of jQuery when the user is not logged in. So I've copied concrete/elements/header_required.php into my local elements/ directory, and made the necessary edits. For whatever reason the core version of header_required.php is still being loaded.
When I edit the core file everything works. So the problem seems to be that the new file isn't taking precedence. Has anyone else experienced this before?
I'm using the most current stable version of C5.
I'm want to edit header_required so that I can load the newest version of jQuery when the user is not logged in. So I've copied concrete/elements/header_required.php into my local elements/ directory, and made the necessary edits. For whatever reason the core version of header_required.php is still being loaded.
When I edit the core file everything works. So the problem seems to be that the new file isn't taking precedence. Has anyone else experienced this before?
I'm using the most current stable version of C5.
I copied header_required.php to /elements/header_required.php, changed a few things, cleared the cache and reloaded the page and saw my hello world.
It might be possible that this is caused by a theme though. You have to use this line and not a direct include in header.php:
You can easily try with a core theme to see if it changes anything too!