Head Block does not load CSS file

Asked

Viewed 424 times

3

I created a block to upload the files CSS:

<block type="page/html_head" name="head" as="head">
  <action method="addCss"><stylesheet>css/base.css</stylesheet></action>
  <action method="addCss"><stylesheet>css/topo.css</stylesheet></action>
  <action method="addCss"><stylesheet>css/rodape.css</stylesheet></action>
  <!--<action method="addCss"><stylesheet>css/reset.css</stylesheet></action>-->
</block>

and in the directory CSS I have these files:

base.css
reset.css
rodape.css
topo.css

base.css carries beauty, topo.css also but rodape.css does not carry.

Any hint?

  • I’m sure you’re not calling it correctly, some misspelling or opening/closing tags. which website?

  • It’s on localhost. But by ruling out the possibility of misspelling I posted the contents of the CSS directory. Note that base.css loads but the.css footer does not.css.

  • Now another thing is happening: I pointed out a footer.phtml, filled the file and it was beauty. After a few days I removed the command that matters this footer.phtml but the footer that I created does not disappear.

  • This could be Magento’s cache problem.

  • And what could I do to get around?

  • Always remember to delete the folder /var/cache of the user otherwise this type of problems will always happen

Show 1 more comment

1 answer

1


Try as Ference instead of Block

<reference name="head">
  <action method="addCss"><stylesheet>css/base.css</stylesheet></action>
  <action method="addCss"><stylesheet>css/topo.css</stylesheet></action>
  <action method="addCss"><stylesheet>css/rodape.css</stylesheet></action>
  <!--<action method="addCss"><stylesheet>css/reset.css</stylesheet></action>-->
</reference>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.