add new css/js files and override existing one

How to configure and adapt Aimeos based shops as developer
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!
User avatar
мужыковмужыков
Posts: 10
Joined: 08 Sep 2023, 08:52

add new css/js files and override existing one

Post by мужыковмужыков » 10 Sep 2023, 15:06

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

Code: Select all

{
        "name": "theme css",
        "file": "aimeos.css",
        "isDebug": true,
        "fileIncludes": [{
            "text": "aimeos.css",
            "path": "themes/client/html/"
        }]
    }
, 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

User avatar
aimeos
Administrator
Posts: 7894
Joined: 01 Jan 1970, 00:00

Re: add new css/js files and override existing one

Post by aimeos » 12 Sep 2023, 09:21

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
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply