Support

Home Forums Event Espresso Premium Center Event Title

Center Event Title

Posted: April 12, 2024 at 11:38 am

Viewing 11 reply threads


bbc_admin

April 12, 2024 at 11:38 am

Hi. How would I center the title for my event? Right now it is left justified. Also, can I center the date of the event? Thanks.


Sam

  • Support Staff

April 12, 2024 at 12:01 pm

Hi There,

Yes, you can adjust the alignment of the title and event date with custom CSS.

Can you please share a direct link to the event page so that we can help you better with the exact CSS to adjust that?

Looking forward to helping you.


bbc_admin

April 12, 2024 at 12:19 pm

https://bbcchurch.org/?post_type=espresso_events&p=2980&preview=true


Sam

  • Support Staff

April 13, 2024 at 1:22 am

I think the link you have shared is a preview link and the event is not published yet.

Please publish the event and share the link so that we can help you better.


bbc_admin

April 14, 2024 at 4:57 pm

Oh, sorry. Please try this one: https://bbcchurch.org/events/better-marriage


Rio

  • Support Staff

April 14, 2024 at 5:38 pm

Hello,

You can inspect element, so you will have idea which one to edit.
https://monosnap.com/file/cQzC4IP9Cc1XOOHTqjpJKJ6V1ld0TC

You will notice though you can target h1.entry-title, i added .espresso_events as it is the elemenent before that h1, and this will isolate the changes to all EE h1 title.

.espresso_events h1.entry-title {
    text-align: center;
}

Then paste the code to your theme, by going to WP Dashboard -> appearance -> customize -> additional css

thanks


bbc_admin

April 14, 2024 at 5:46 pm

Oh sweet, that worked! Thanks!


Rio

  • Support Staff

April 14, 2024 at 5:51 pm

Awesome! Have a wonderful day.

If you need anything, feel free to reach us again.

thanks


bbc_admin

April 15, 2024 at 2:42 pm

Oh, Do you know how I can center the date with the add to calendar option?


Tony

  • Support Staff

April 15, 2024 at 3:08 pm

Hi there,

You’ll need something like this:


.espresso_events .ee-event-datetimes-ul li {
    width: auto;
}


bbc_admin

April 16, 2024 at 7:07 am

That works! Thank you so much for all your help!


Tony

  • Support Staff

April 16, 2024 at 7:08 am

You’re most welcome 🙂

Viewing 11 reply threads

The support post ‘Center Event Title’ 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