The Header Required It's ignored

Permalink
Hello

I made a website in 5.7.1 with a custom Theme, but this time 5.7.1 keeps ignoring the command to call the core Jquery:
<?php Loader::element('header_required', array('pageTitle' => $pageTitle));?>


<?php Loader::element('header_required');?>


None of this works now, only works if I Log in.
What can be wrong? I made two times the website and I can not find the problem.
Thank you very much.

pedroserapio
 
Tom0 replied on at Permalink Reply
I'm not sure because I'm new to Concerete5 since 5.7, but from my understanding this has moved to page_theme.php

<?
namespace Application\Theme\[theme folder name here];
use Concrete\Core\Page\Theme\Theme;

class PageTheme extends Theme {
public function registerAssets() {
$this->requireAsset('javascript', 'jquery');
}
}
?>
pedroserapio replied on at Permalink Reply
pedroserapio
Thank you very much for the answer. Well... I found the problem, little strange but I see some relation with one problem that I found before in 5.7.1

http://www.concrete5.org/community/forums/5-7-discussion/error-afte...

If I don't correct this lines of code before the installation of a new Theme I get the installation corrupted. What I did next was, corrected this line, changed the name of the Theme folder just to make sure it's a fresh install and execute the installation. This time was successful and everything started working again.

I hope this can help.