Skip to content

Commit

Permalink
Merge pull request #2637 from QuizandSurveyMaster/Core-question-label…
Browse files Browse the repository at this point in the history
…-fixes

Core question label fixes
  • Loading branch information
zubairraeen authored Sep 6, 2024
2 parents e74d219 + 0e41f85 commit 75b9a67
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions css/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,9 @@ footer.qsm-popup__footer button.qsm-popup-secondary-button:hover {
width: auto;
margin-bottom: 10px;
}
.quiz_section .mlw_qmn_new_question .qsm-question-title-label {
display: inline;
}
.quiz_section .mlw_qmn_question.qsm_remove_bold {
font-weight: normal;
display: block;
Expand Down
2 changes: 1 addition & 1 deletion php/question-types/qsm-question-title.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function qsm_question_title_func( $question, $question_type = '', $new_question_
$new_question_title = apply_filters( 'qsm_question_title_before', $new_question_title, $question_type, $question_id );
if ( in_array( intval( get_question_type( $question_id ) ), [ 12, 7, 3, 5 ], true ) ) {
?>
<div class='mlw_qmn_new_question'><label for="question<?php echo esc_attr( $question_id ); ?>"><?php echo esc_html( $new_question_title ); ?> </label></div>
<div class='mlw_qmn_new_question'><label class="qsm-question-title-label" for="question<?php echo esc_attr( $question_id ); ?>"><?php echo esc_html( $new_question_title ); ?> </label></div>
<?php
} else {
?>
Expand Down

0 comments on commit 75b9a67

Please sign in to comment.