add new css/js files and override existing one
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
- мужыковмужыков
- Posts: 10
- Joined: 08 Sep 2023, 08:52
add new css/js files and override existing one
Hi,
I've tried to add a new css and js file for the product page. I added it into /package/<theme>/themes/client/html/ and added them into manifest.jsb2 like this, but it not added. And I've tried to override aimeos.css, which I put into /package/<theme>/themes/client/html/, but still used the default one. How I can add new files and customize an existing one
I've tried to add a new css and js file for the product page. I added it into /package/<theme>/themes/client/html/ and added them into manifest.jsb2 like this
Code: Select all
{
"name": "theme css",
"file": "aimeos.css",
"isDebug": true,
"fileIncludes": [{
"text": "aimeos.css",
"path": "themes/client/html/"
}]
}
Re: add new css/js files and override existing one
The manifest.jsb2 file is only for the admin backend. If you want to add own CSS/JS files in the frontend, you have to add them to the header.php file you overwrite in your own extension, e.g. for the catalog detail component:
https://github.com/aimeos/ai-client-htm ... hp#L74-L78
https://github.com/aimeos/ai-client-htm ... hp#L74-L78
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star