Support

Home Forums Event Espresso Premium event title

event title

Posted: November 13, 2014 at 9:23 am

Viewing 6 reply threads


Toby Staveley

November 13, 2014 at 9:23 am

I have Sst a custom title for the event list, following your helpful instructions:
[ESPRESSO_EVENTS title=”My Super Event List”]

However the title spins over 2 lines – is this my own CSS I need to fix, or something in your template? See for example-
http://www.yellowsubmarine.org.uk/our-activities/for-adults/residential-holidays/upcoming/
Where upcoming and events are on 2 lines.

Furthermore- in a similar vein, (but probably a different issue) when I click on “view details” of an event, it doesn’t list the event title, e.g.
http://www.yellowsubmarine.org.uk/events/christmas-break-to-cardiff-south-wales/
No-where within the page content does it show the title “christmas break to cardiff south wales” that was listed in the previous events list…

Many thanks, Toby


Tony

  • Support Staff

November 13, 2014 at 10:46 am

Hi Toby,

However the title spins over 2 lines – is this my own CSS I need to fix, or something in your template? See for example-
http://www.yellowsubmarine.org.uk/our-activities/for-adults/residential-holidays/upcoming/

Where upcoming and events are on 2 lines.

This is actually caused by js_composer adding come styles to that element. These styles:

.wpb_row *, .wpb_row *:before, .wpb_row *:after {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}

Specifically box-sizing: border-box;

We can override this using something like:

h1.page-title {
box-sizing: content-box;
}

Which changes this within all pages, although may cause issues elsewhere if that styling is expected. You can add the page ID to the selector to force the change on that specific page if this becomes a problem, like so:

.page-id-597 h1.page-title {
box-sizing: content-box;
}

Furthermore- in a similar vein, (but probably a different issue) when I click on “view details” of an event, it doesn’t list the event title, e.g.
http://www.yellowsubmarine.org.uk/events/christmas-break-to-cardiff-south-wales/
No-where within the page content does it show the title “christmas break to cardiff south wales” that was listed in the previous events list…

Event Espresso uses your sites theme to output the data, it simply injects the Event data within your sites theme files dynamically. It looks like your sites single.php template does not output the title, so when EE uses that template it will not output the title either.

Which theme are you using?


Toby Staveley

November 20, 2014 at 9:33 am

Thanks Tony – that worked very well for the 2 lines title- great.

The theme I’m using is the7 dream. I think I understand what your suggesting, but I probably need to find a developer help me achieve this.

Thanks


Dean

November 21, 2014 at 1:42 am

You might want to double check the theme settings as well, as sometimes they provide a way to show/hide the title on Single posts (that’s all an event is, a type of post)


Toby Staveley

December 2, 2014 at 6:49 am

Hi Dead – in this case there’s no way to show/hide title on singe posts within my dashboard. I think in our case events are made from page.php.

I guess this is fairly easy to change within the template for those in the know!


Toby Staveley

December 2, 2014 at 6:49 am

Hi Dean – in this case there’s no way to show/hide title on singe posts within my dashboard. I think in our case events are made from page.php.

I guess this is fairly easy to change within the template for those in the know!


Josh

  • Support Staff

December 2, 2014 at 10:43 am

Hi Toby,

It’s also possible to use an action hook to print the title. No template hacking necessary. You add this to your child theme’s functions.php:

// output the event title before the event date
// useful for themes that don't output the title
// 

add_action( 'AHEE_event_details_before_event_date', 'my_custom_event_title' ); 

function my_custom_event_title( $post ) {
    if ( is_single() ) { ?>
        

Viewing 6 reply threads

The support post ‘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