Format Attendees List with separators
Thanks for reaching out!
Are you using this code to add the attendee names to the list? You could add the comma (or other separator) directly in the template:
<?php echo $attendee_name . ','; ?>
Are you displaying the avatars as well, or just the names? We are a bit limited in the amount of support that we can provide customizations like this, but if you want to send me the code that you’re using (preferably as a gist) and let me know how you’d ideally like to separate the names, I’ll be happy to take a look and see what I can recommend!
Yes that does add the comma similarly to your CSS, but I was really intending to show a starting point for where you could add additional markup. You could also add some CSS to display the li as a block level element (display: block;) for example, it really depends on what type of separation you would like to add.
As I mentioned previously, we are limited in the support that we can provide for customizations like this, but if you can tell me exactly how you would like it to display, I’ll be happy to try to point you in the right direction!
Thanks for sending the screenshot! Without a link to the page, it’s a bit harder to recommend anything specific, but here are a few things that you can try out:
- Using :not(:last-child) in your CSS to avoid adding a comma to the last name in the list
- Adding !important to the “display: block” rule for the list items
- Adding/increasing the margins/padding around the list items
- Displaying the names in equal-width columns
As I mentioned previously, we are limited in the amount of support that we can provide for CSS customizations like this, but if you get stuck, please send me a link to a page with your CSS applied – I’ll be happy to take a look and point you in the right direction!
Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team
The topic ‘Format Attendees List with separators’ is closed to new replies.