Skip to content

Commit

Permalink
Add custom class to attendees URLs (#1381)
Browse files Browse the repository at this point in the history
This mimics what happens for other questions where a class `tix-question-name` is added, allowing for further styling.
Currently URLs only get the same, generic classes making it very difficult to style them according to their nature.
  • Loading branch information
enricobattocchi authored Sep 27, 2024
1 parent 423e619 commit ad61ccf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function attendees_shortcode_item( $attendee_id ) {
$label = substr( $label, 4 );
}

printf( '<a class="tix-field tix-attendee-url" href="%s">%s</a>', esc_url( $url ), esc_html( $label ) );
printf( '<a class="tix-field tix-attendee-url tix-%s" href="%s">%s</a>', esc_attr( $question->post_name ), esc_url( $url ), esc_html( $label ) );
}
}
}
Expand Down

0 comments on commit ad61ccf

Please sign in to comment.