cancel
Showing results for 
Search instead for 
Did you mean: 

Adding a Style Sheet

Re: Adding a Style Sheet

Thanks @Nishu Jindal . I need the location of Design Folder subdirectory view . I am sharing another screenshot for your convenience.  

 

Re: Adding a Style Sheet

Hi @foysal ,

 

Thanks for sharing the information.

Could you please perform below Magento commands one by one on your instance.

  1. rm -rf pub/static/frontend 
  2. rm -rf var/cache/
  3. Remove generated/
  4. Remove var/page_cache
  5. Remove var/view_preprocessed
  6. Run php bin/magento setup:static-content:deploy -f

Also Please confirm your Magento instance is in Developer mode or Production mode. ?

If this is on some server. can you please share with me the link to the website.

 

Hope this helps you!

Problem Solved! Click Kudos & Accept as Solution!

Re: Adding a Style Sheet

Thanks @Nishu Jindal . You said It seems like your CSS file location is not correct. 


is my CSS file location correct ? What did you find ?

How to know my Magento instance is in Developer mode or Production mode ?

Thanks.

Re: Adding a Style Sheet

Hi @foysal,

Yes, your file location is correct. I was not aware of codazone theme.

Generally we have folder structure as 

app/design/frontend/theme-vendor/theme-name/web

But you were having one extra folder in the path that is why I want to confirm with you the structure first.

 

For checking the mode please run below command

php bin/magento deploy:mode:show

 

Thanks!

Re: Adding a Style Sheet

Thanks @Nishu Jindal . I am getting below error in errro.log file.

[08-Jul-2020 11:45:22 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'imagick.so' (tried: /opt/cpanel/ea-php73/root/usr/lib64/php/modules/imagick.so (libMagickWand.so.5: cannot open shared object file: No such file or directory), /opt/cpanel/ea-php73/root/usr/lib64/php/modules/imagick.so.so (/opt/cpanel/ea-php73/root/usr/lib64/php/modules/imagick.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

Re: Adding a Style Sheet

Hi @foysal,

 

I got some information regarding this error. Can you please check below link.

https://forums.cpanel.net/threads/unable-to-load-dynamic-library-imagick-so-memcache-so.410261/

 

If still not solved. Please try to resolve your issue from hosting provider.

 

Thanks!

Re: Adding a Style Sheet

Thanks @Nishu Jindal . I changed code of fixed_css.css CSS file. I put below code in it.

body {
    background-color: red;
}

and run below commands.

php bin/magento setup:upgrade

php bin/magento setup:static-content:deploy -f

But if I browse the code in fixed_css.css using ctrl + u I found previous code like below.

.search-hearder-main.row {
    justify-content: center !important;
}

Thanks.

 

Re: Adding a Style Sheet

Hi @foysal ,

Can you please share the screenshot of the css file content which you have and share the website link with me

Let me check and I will get back to you.

 

Thanks!