WeBWorK Main Forum

Can one edit test (i.e. gateway) css and template files in 2.19?

Can one edit test (i.e. gateway) css and template files in 2.19?

by Larry Riddle -
Number of replies: 1
Is it possible to edit a css file for a gateway (test) quiz, and if so, where would such a file be located. And is it possible to add our own text to the page that opens when you click on the Gateway quiz template?

There used to be a gateway.css file and a gateway.template file in htdocs/themes/math4 that I could edit to customize the text and appearance of our gateway quizzes for differentiation and integration, but those files don't seem to be used anymore from a few experiments I did with some old gateway quizzes. 
In reply to Larry Riddle

Can one edit test (i.e. gateway) css and template files in 2.19?

by Glenn Rice -
There isn't a way to edit those as a configurable theme like there used to be. However, you have the source for WeBWorK on your server, and you are free to edit that as you see fit, and you could add something that fits your needs. The file to edit for this would be templates/ContentGenerator/GatewayQuiz.html.ep. Note that any changes you make will interfere with upgrading WeBWorK, and so you will have to relegate changes for new releases.