Post by ziatakis » Sat Dec 05, 2020 11:24 am

Hello,
OC 3.0.3.1

i deleted the link to css file from template/common/header.twig
amd replaced with my own css file,
but it keeps showing when i look at page source.

I believe that it is added dynamically somehow.
How can i delete it permanently??

New member

Posts

Joined
Mon Oct 09, 2017 11:29 pm

Post by sw!tch » Sat Dec 05, 2020 12:49 pm

Admin -> Dashboard -> Cog icon on the top right. Clear theme cache.

Admin -> Extension -> Modification -> refresh modification cache.

Backup and learn how to recover before you make any changes!


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm

Post by ziatakis » Sat Dec 05, 2020 5:35 pm

sw!tch wrote:
Sat Dec 05, 2020 12:49 pm
Admin -> Dashboard -> Cog icon on the top right. Clear theme cache.

Admin -> Extension -> Modification -> refresh modification cache.
It is not the theme's Cache. I even deleted manually from system/storage/cache

The link to old css file propably is in .php file. I took a look in catalgog/controller/common/header.php with no luck

New member

Posts

Joined
Mon Oct 09, 2017 11:29 pm

Post by by mona » Sat Dec 05, 2020 6:10 pm

Sw!tch is correct.

You do not mention a theme - so we have all presumed you mean the default stylesheet.
A link to your site maybe.

You should also check with your host, maybe they have cache - maybe you have cache and they have cache and you are mis-timing you cache as you are in an endless loop - really hard to say without more info, but if you have removed it from header.twig - then it is not calling it.

Other things you can try.
1. Delete the contents of the stylesheet.css
2. Replace the contents of the stylesheet with your stylesheet

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by ziatakis » Sat Dec 05, 2020 9:29 pm

by mona wrote:
Sat Dec 05, 2020 6:10 pm
Sw!tch is correct.

You do not mention a theme - so we have all presumed you mean the default stylesheet.
A link to your site maybe.

You should also check with your host, maybe they have cache - maybe you have cache and they have cache and you are mis-timing you cache as you are in an endless loop - really hard to say without more info, but if you have removed it from header.twig - then it is not calling it.

Other things you can try.
1. Delete the contents of the stylesheet.css
2. Replace the contents of the stylesheet with your stylesheet
i hosted my old css to the following link
<link href="https://res.cloudinary.com/ziatakis/raw ... atakis.css" rel="stylesheet" type="text/css">

I deleted the css file from cloudinary.
I deleted the link from header.twig
Cleared all caches many times
There is no cache in my VPS in dreamhost

but on page source the link to old css file still showing

take o look here
https://www.e-ziatakis.gr/

New member

Posts

Joined
Mon Oct 09, 2017 11:29 pm

Post by by mona » Sat Dec 05, 2020 9:37 pm

Did you maybe forget to clear your browser cache ??

It has updated.
The css file being used is /catalog/view/ziatakis/ziatakis.css
the other one is deleted - it shows because there is caching somewhere or you added it via an extension. Check your modifications.
Last edited by by mona on Sat Dec 05, 2020 9:40 pm, edited 1 time in total.

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by IP_CAM » Sat Dec 05, 2020 9:40 pm

Not an OC Default Theme, better get in contact with the Theme Supplier on such.

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

User avatar
Legendary Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by straightlight » Mon Dec 07, 2020 8:33 pm

If the cache Engine does not respond, then it might be possible that your storage folder is not located outside of your public_html folder. See this FAQ: viewtopic.php?f=134&t=215776#p717782 (first post).

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by ziatakis » Mon Dec 07, 2020 9:10 pm

SOLVED IT,

the css file was dynamically added from an extension. The problem in that case was NOT the CACHES.
in catalog/controller/extension/module/examplemodule.php i just deleted the link to the old css file

New member

Posts

Joined
Mon Oct 09, 2017 11:29 pm

Post by straightlight » Mon Dec 07, 2020 9:24 pm

ziatakis wrote:
Mon Dec 07, 2020 9:10 pm
SOLVED IT,

the css file was dynamically added from an extension. The problem in that case was NOT the CACHES.
in catalog/controller/extension/module/examplemodule.php i just deleted the link to the old css file
Thanks for the feedback. Now that the issue has been resolved, please add [SOLVED] in the first post's front of the subject line in the edit post link.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: Amazon [Bot] and 19 guests