Posted: November 18, 2012 at 10:34 pm
Is it possible to add the event’s short description in the sidebar widget (widget.php)? I have everything else displaying the way I’d like but would really like to pull this in as well. Tried using the same code from the event list display but can’t get it to work. Thanks in advance for any help! | |
Yes it is possible. In the widgets.php file (ideally this is a copy in your uploads/espresso/templates directory) around line 129 you will see
after that if you add:
it will display the event description. There are a few caveats though. Firstly its advisable to use the More tag to cut off the event description otherwise you will see a lot of text. Also try not to use shortcodes or html in the description that will show as they will not show correctly in the sidebar. | |
Perfect, thank you! | |
Just realized that the entire description is showing on the widget. Short description is working on the event list though. (Short description set to yes in template settings and am using the more tag). Any idea what I need to do on my widgets.php page? Thanks! | |
Hi, Yes I realised what was wrong, I even mentioned it but didnt think, the shortcodes don’t work so why would the more tag? Unfortunately we don’t have a simple way to reduce the size of the description without using a PHP function to shorten it. A quick browse led me to a few things but this one seemed fairly straightworward – the 180 is the number of characters to display
| |
you’re awesome! thanks! | |
No problem! | |
The support post ‘Showing list of attendees on the registration 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.