Problem changing css

Problem changing css

Amando Buchan發表於
Number of replies: 7
hi,

i am trying to change the appearance of my moodle, but when i make a new folder "myowntheme", i copy all the files from formal_white in there. then i go to moodle/theme/myowntheme and i change the fw_color.css for example:

a:hover {
color: #990000;
}

to

a:hover {
color: #ffffff;
}

nothing happens when i select the theme in moodle, i even tryed hard refresh and reboot.
But when i change the hover in the original formal_white folder , and then copy the folder and change the name to "example", chose the example appearance in moodle, the appearance does happen. but only for 1 time, if i go back to the example folder and change the hover to another color it will stay white and i cant change it anymore.
***
i could bypass the problem by changing everything in the formal_white folder and then copy and rename it, but then i cant see if i am changing the right thing and if i make 1 mistake i keep changing and copying the folder
***
What am i doing wrong?
評比平均分數: -
In reply to Amando Buchan

Re: Problem changing css

Frank Ralf發表於
Hi Amando,

In addition to creating a new style sheet you also have to modify the config.php file so your styles get actually loaded. Please see Creating a custom theme and Make your own theme for further information.

You might also find Themes FAQ and CSS FAQ useful.

hth
Frank
In reply to Frank Ralf

Re: Problem changing css

Amando Buchan發表於

thanks for responding

I looked at those help links but i still dont understand what i am doing wrong, i am not that great in php because i'm a webdesigner btw .

$THEME->sheets = array('fw_layout','fw_fonts','fw_color');

$THEME->standardsheets = array('fw_layout','fw_fonts','fw_color');

i did theme parent on false

i chose "myowntheme", (this is a exact copy of Formal_white) those 3 css files are the ones i changed, i changed the hover to white but if i refresh it still wont change.

but just 1 more question, if i chose formal_white as my theme in moodle and i change the fw_color, like previous example , hover to white. shouldnt that need to work ? because all the links are allready defined by the person who made formal_white?

In reply to Amando Buchan

Re: Problem changing css

Frank Ralf發表於
Try also renaming the stylesheets themselves so the standard sheet won't get in the way.

Have you tried using Firebug? With that I could change the hoover style on the Moodle demo dite with no problems (see screenshot).

And it might also be a browser specific problem. Which browser do you use?

hth
Frank
附件 Moodle_Features_Demo_hover-color.png
In reply to Amando Buchan

Re: Problem changing css

Amando Buchan發表於
Ok, i found a solution to my problem, i redownloaded the all in one package for my Mac this time. before i used the all in one package for windows.

when i change something in the css now it immediatly changes.

I think there is a problem with the all in one package for windows because i saw another thread with someone having same problem as me but he had it with header.php. He sayd when he downloaded the standard moodle package and Xamp seperatly that it then worked fine.
In reply to Amando Buchan

Re: Problem changing css

Mike Shurance發表於
I too am having this same problem. It has been vexing me all day! I think there is a permissions issue with the apache server in the ALL in ONE package for Windows. I am going to download Xamp and the standard package seperately and give that a go.
In reply to Mike Shurance

Re: Problem changing css

Mike Shurance發表於
SUCCESS!  After downloading the Xampp and standard moodle package sepreatly, the changes are now showing right away. There must be an issue with the all in one package.