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.

roketto
 
Remo replied on at Permalink Best Answer Reply
Remo
I can't reproduce this with 5.6.1.

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:

Loader::element('header_required');


You can easily try with a core theme to see if it changes anything too!
roketto replied on at Permalink Reply
roketto
I've now moved past this issue, but there's a good chance I simply had not cleared my cache and didn't think to do so.

Hopefully that was the only issue. If I come back to this I'll be sure to clear my cache if I'm experiencing any troubles.

Thanks