Post by 3zzy » Tue Aug 23, 2016 5:45 pm

Hi,

I'm trying to make a couple of cosmetic changes to the admin to suit my needs and I need to edit stylesheet.css for it, but I want to make sure my edits are preserved between opencart updates.

So I'm wondering whats the best way to go about it?

Thanks

Newbie

Posts

Joined
Thu Aug 11, 2016 12:56 pm

Post by knowband.plugins » Fri Aug 26, 2016 12:31 pm

You should create your own CSS file and include in the controller using VQMOD.

This way you will be able to make changes without modifying core files.

To include your CSS file from controller, you can use below function.

$this->document->addStyle('view/stylesheet/css_file_name.css');

Regards,
Knowband Team

Opencart Plugins: Knowband Store
Email: support@knowband.com


User avatar
Active Member

Posts

Joined
Thu Aug 04, 2016 2:56 pm
Who is online

Users browsing this forum: No registered users and 13 guests