Support

Home Forums Event Espresso Premium How to Change Format for Staff Listing on Event Page

How to Change Format for Staff Listing on Event Page

Posted: December 14, 2012 at 10:52 pm


Sean Collishaw

December 14, 2012 at 10:52 pm

Hi guys… I’m trying to figure out how to change the format for displaying event staff. Right now, I have several staff members on an event. The name is displayed in bold, centered on the page. Below the name, aligned left, is the staff member image.

I’d like to have the list of event staff be left aligned, with the person’s name under the image. Can this be done, and if so, how?


Dean

December 17, 2012 at 2:43 am

Hi Mike,

Yeah its a strange setup on that isnt it? I’ll get this looked at for 3.2

You can re-arrange it via CSS – in your theme style.css add this

.event_staff {
    margin-top:80px;
}
.event_staff p.event_person:first-child {
margin-top: 185px;
text-align: center;
margin-bottom: 0;
text-align:left !important;
}
.image_wrapper {
margin-top: -120px;
}

That was based on the Twentyeleven theme so you may need to tweak the code to suit your theme/needs.

You can also rearrange by changing the shortcode but that is editing a core file which we dont really recommend. Go to event-espresso/includes/shortcodes.php. On line 593 you will find a block of code starting //Build the persons name/title – cut all of that and paste it above the line starting //Build the description.


Sean Collishaw

December 17, 2012 at 2:55 pm

The image is still below the name, but it’s so much better than it was before. Thanks for this snippet of code! 🙂

The support post ‘How to Change Format for Staff Listing on Event Page’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso