Jump to content

Classic theme problem: Un-minyfing CSS and JS cuse theme problem


Recommended Posts

Hello.

I want to change CSS and JS of Prestashop classic theme to un-minify, for human readability.

But after changing it to un-minify style not work and site layout is cluttered!

please help for un-minify themes without problem afterward.

Thanks

Edited by arsse (see edit history)
Link to comment
Share on other sites

3 hours ago, SmartDataSoft said:

Please clear your cache from Performance-> and force compile it. What is the version of your PrestaShop

 

You can use  this module to add custom js and css in your site. 

  

Thank you

Thanks for answering. I did that you told me But it not solved my problem. When CSS unminifyed my theme seems layout is cluttered.!

Edited by arsse (see edit history)
Link to comment
Share on other sites

Also I want to create child theme from classic theme.

When i create my own theme_rtl in child folder and only add some new CSS it show front-end  layout is messed up.

for example in child them asset/css only is theme_rtl.css with this code:

body {
  color:red;
}

This code cause :the page  layout is cluttered..

Font has been changed color to red bout layout is lost!

Edited by arsse (see edit history)
Link to comment
Share on other sites

1)I has uploaded child theme

2) first pic is original widthout child

3) second pic shown when us child theme is in use.

4) when theme_rtl.css or theme.css in classic theme change to un-minify original theme is shown like second picture.

please help

 

 

layout_original_01_20210723.thumb.jpg.0512c97d6481f2763c6b791c3bb11836.jpg

 

layout02_child_20210723.thumb.jpg.b674fcd10b1a92b389d8416d8ecc6357.jpg

child.zip

Edited by arsse (see edit history)
Link to comment
Share on other sites

@arsse

First of all according to the child theme architecture if you  call a file with same name it will load from your child theme. the classic theme has a file called theme_rtl.css  

that is why it load from child theme and all rtl related css is gone. I have tested and here is the final solution

 

1. remove theme_rtl.css from child theme

2.  create a file  1.7.7.5\themes\chaild\assets\css\custom_rtl.css and put all modification then it will looks like this

 

Do not forget to mark the post as solve and click the love icon to the answer

 

Thank you

Screenshot (3).png

chaild.zip

Edited by SmartDataSoft (see edit history)
  • Like 1
Link to comment
Share on other sites

5 hours ago, SmartDataSoft said:

@arsse

First of all according to the child theme architecture if you  call a file with same name it will load from your child theme. the classic theme has a file called theme_rtl.css  

that is why it load from child theme and all rtl related css is gone. I have tested and here is the final solution

 

1. remove theme_rtl.css from child theme

2.  create a file  1.7.7.5\themes\chaild\assets\css\custom_rtl.css and put all modification then it will looks like this

 

Do not forget to mark the post as solve and click the love icon to the answer

 

Thank you

Screenshot (3).png

chaild.zip 52.13 kB · 0 downloads

Thanks. But problems not solved:

1) In classic theme when we convert theme.css and theme_rtl.css to un-minify layout become cluttered.

why? How we can do that without cluttering layout?

 

2) in Child problem exist! font must have changed to red but not.

I think it can not read custom_rtl.css.

Edited by arsse (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...