My Changes Problem

I have a problem that I tried to fix for three weeks now, reading everything in this forum and net. I want to edit templates with hooks and here s what I did:


  1. I created “styles.post.tpl” in the directory /skins/basic/customer/addons/my_changes/hooks/index/
  2. In this file I copied this text:
  3. I created “styles.css” in the directory /skins/basic/customer/addons/my_changes/
  4. In this file I copied some examples:



    a, a:visited, a:hover, a:active {

    color: #f27a00;

    }

    body, div, p {

    color: #353535;

    font: normal 130px Verdana, Arial, sans-serif;

    }

    body {

    background: #E22028 none;

    }



    AND THEN… nothing happens. The homepage is still the same.


  5. I tried to clear cache, again nothing.
  6. I disabled and enabled My Changes addon, again nothing.





    Is there somthing else I can do to fix this?



    Thank You

[quote name='tendenca' timestamp='1311212208' post='117833']

I have a problem that I tried to fix for three weeks now, reading everything in this forum and net. I want to edit templates with hooks and here s what I did:


  1. I created “styles.post.tpl” in the directory /skins/basic/customer/addons/my_changes/hooks/index/
  2. In this file I copied this text:
  3. I created “styles.css” in the directory /skins/basic/customer/addons/my_changes/
  4. In this file I copied some examples:



    a, a:visited, a:hover, a:active {

    color: #f27a00;

    }

    body, div, p {

    color: #353535;

    font: normal 130px Verdana, Arial, sans-serif;

    }

    body {

    background: #E22028 none;

    }



    AND THEN… nothing happens. The homepage is still the same.


  5. I tried to clear cache, again nothing.
  6. I disabled and enabled My Changes addon, again nothing.





    Is there somthing else I can do to fix this?



    Thank You

    [/quote]



    Also remember to clear your “Browser Cache” when making changes to CSS (or just disable it until finished).

You can also do a 'view source' from your browser to verify that the link tag you added actually appears inside the head tag of the document.

Yes I did clear browser cache + I tried to open my homepage with two other browsers. No luck :S

[quote name='tbirnseth' timestamp='1311213003' post='117835']

You can also do a 'view source' from your browser to verify that the link tag you added actually appears inside the head tag of the document.

[/quote]





Yes the link is there but it's not in a separate line, is this a problem?



Here is how it looks:






No, white space (or newlines) don't matter to html…

So your css file is being included in the pages but your properties are not being used.



In this case (assuming you don't have any browser errors about syntax problems in the css file), you will need to use a tool such as firebug for FireFox to “inspect” the page and see where the style definition is being pulled from for the element in question.



If you are not familiar with use of css, suggest you hire someone who can help you. It will be money well spent.

I just fixed it. All I had to do was uninstall my changes addon and install again and do everything from beginning. Thanx for your help.

Should only have had to clear your browser cache so it can reset its timestamp for the last modification time of the file.