'Timber footer returns svg?
I actually build a site with timber, below is my composer json :
{
...,
"autoload": {
"psr-4": {
"App\\": "src/"
}
},
"require": {
"timber/timber": "1.18",
"hellonico/timber-dump-extension": "^1.0",
"guzzlehttp/guzzle": "^7.0"
},
"require-dev": {
"symfony/var-dumper": "^5.3"
},
"config": {
"allow-plugins": {
"composer/installers": true
}
}
}
my footer template : {{function("wp_footer")}}</body></html>
Oddly, this snippet, doesn't outputs registered scripts but some svg tags that I don't know where they come from (image below)footer output.
here how i register my script :
wp_register_script('myjs', APP_DIR_URI .'/dist/js/myjs.js', ['jQuery'], "1.0.0", true); wp_enqueue_script('prono');
Could you please explain me why have this issue, is this related to the version of timber or something else ?
Thank you
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
