HTML block before questions and answers

HTML block before questions and answers

by Phineas Gomez -
Number of replies: 2

Hi!


I would like to add a custom block of HTML in the quiz for a certain course before the questions and answers. The point is that I can only add the block to the left, but when viewed on mobiles it appears below the questionnaire.

Is there a way for the block to appear before quiz?

The only thing that has occurred to me is to add an information question, but it is practical because one must be included for each question in the questionnaire as they are paged 1 to 1. It also shows the header and takes up more space on mobile phones.


Use Moodle 3.9


Thank you!!

Average of ratings: -
In reply to Phineas Gomez

Re: HTML block before questions and answers

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
I think you are looking for the 'Description' question type (which is not a question, just a block of html content.)
In reply to Tim Hunt

Re: HTML block before questions and answers

by Phineas Gomez -
Thx for your answer Tim.

I solved it using a description question type and the next costomizations:



1) Hidding the description question from the navigation block:

http://moodurian.blogspot.com/2013/10/how-to-hide-a-description-question-box.html



2) Using this CSS for the description question headers:

.que.description .info {
display: none;
}


Now I can display ads on the top and below the quiz questions =)