Posted: November 13, 2014 at 9:23 am
|
I have Sst a custom title for the event list, following your helpful instructions: However the title spins over 2 lines – is this my own CSS I need to fix, or something in your template? See for example- 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. Many thanks, Toby |
Hi Toby,
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; }
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? |
|
|
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 |
|
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) |
|
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! |
|
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! |
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() ) { ?> |
|
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.