Remove the "Try again" button

Konvey
Konvey
  • Konvey
  • 5 months ago

I want users to be able to take the quiz multiple times, but I don't want them to do it by clicking the try again button after the results are shown (I have a menu bar link which they can click to try again).

Please can you tell me which php file I need to edit to remove this button completely? Thanks.

EDIT:

I got it eventually. The file is: components/com_communityquiz/layouts/bootstrap5/results/actions.php

and you need to use css to hide the button. here is the new line:

<a href="<?php echo Route::_( CommunityQuizHelperRoute::getQuizRoute( $item->id, $item->catid, $item->language, $item->course_id ) ) ?>" class="btn btn-primary" style="display: none;">





Access to viewing replies is restricted.
Showing 1 of 1 replies
You do not have permissions for replying to this topic.
Loading...
Confirm delete? This action is irreversible and the data will be deleted permanently. Do you want to continue? Confirm Add New Delete Unpublish Cancel Import Uninstall The selected item successfully deleted.
Shondalai