0

My magento CSS is not loading, and when I try to view source, I noticed something on its src..

<link rel="stylesheet" type="text/css" href="C:\Program Files (x86)\Zend\Apache2\htdocs\myecommerce-local_comhttp://myecommerce.com/skin/frontend/base/default/css/style.css" media="all" />

its look like there's a problem in source file.

It should be like this

<link rel="stylesheet" type="text/css" href="C:\Program Files (x86)\Zend\Apache2\htdocs\myecommerce-local_com\skin\frontend\base\default\css\style.css" media="all" />

What should I do? to change the source of my style?

Thanks

7
  • How you are giving path in href ? Commented Jul 29, 2014 at 10:53
  • the Correct path must be like this <link rel="stylesheet" type="text/css" href="C:\Program Files (x86)\Zend\Apache2\htdocs\myecommerce-local_com\skin\frontend\base\default\css\style.css" media="all" /> Commented Jul 29, 2014 at 10:57
  • i am asking for code you have written to include the css file ? Commented Jul 29, 2014 at 11:01
  • of course i Add css in page.xml <action method="addCss"> <stylesheet>css/styles.css</stylesheet> </action> Commented Jul 29, 2014 at 11:03
  • Actually the href value should be http://myecommerce.com/skin/frontend/base/default/css/style.css I think you have something in the configuration wrong like base url. Commented Jul 29, 2014 at 11:40

1 Answer 1

1

Are you using an Addon like GT Speed do combine/reduce your JS and CSS files? I uninstalled it and the problem was solved.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.