Support

Home Forums Event Espresso Premium Add Details Button & Show Category at Shortcode Event list

Add Details Button & Show Category at Shortcode Event list

Posted: September 6, 2023 at 2:46 pm

Viewing 10 reply threads


YvonneDeffner

September 6, 2023 at 2:46 pm

Hi all,

I am using Shortcode to show Event lists. Is there a option to add some shortcode to show a More Details or Register now button at every event?
And to show its category slug?
Or du I have to change shortcode template? How?

Thank you and best regards


Rio

  • Support Staff

September 7, 2023 at 3:14 am

Are you referring to this?
https://monosnap.com/file/7LRkhbGuKzjB9rzWlDfhnQVUvR0zTE

You can modify your event list page, by going to https://monosnap.com/file/Xndfa9JI2wlJHiI70KmbzQFen7mSsW

If you want to add category slug, you will be needing some modifications
https://eventespresso.com/wiki/ee4-shortcodes-template-variables/


YvonneDeffner

September 13, 2023 at 1:22 pm

Hi Rio,

Thank you for your answer!

No I don´t mean buttons on single Event page, I mean created event list when we use shortcodes like [ESPRESSO_EVENTS category_slug=your_event_category_slug]

When I use this shortcode for displaying a Event list then I get linked Event Title, Event image, Event description, Event dates.
But no linked Button with “more Details” e.g. – and I want a button like this.

And I also want to show the used category slug as text at each listed event.

Best regards
Anna-Lena & Yvonne


Rio

  • Support Staff

September 13, 2023 at 7:16 pm

When you say “more Details”, what other details you want to show up there?
Currently we have more details when the content is long.
https://monosnap.com/file/7LRkhbGuKzjB9rzWlDfhnQVUvR0zTE

For the Category Slug to be there, you have to modify the template.

We have some details on the template files used for each individual EE event section here:

https://gist.github.com/lorenzocaum/0a35fe4997992fdb1dc5

Then you’ll need the help of a developer who is familiar with template files to make changes for you.

Thanks


YvonneDeffner

September 14, 2023 at 6:08 am

Hi Rio,

I think I couldn´t explain right what I mean.

I mean event list view – the overview of some events created via Shortcode.
In this overview of events is a button missing. You get only via clicking on linked title or image to a single event. Not via a button like “more details” or “book now”.

Maybe it´s easier when I show you what I mean:
When yougo to the bottom of homepage of
https://www.hundeschule-yd.de/
There´s an area with 3 events “AKTUELLE TERMINE” – and here I want at each event a button like “more details” or “book now”.

Thank you and best regards
Anna-Lena & Yvonne


Tony

  • Support Staff

September 14, 2023 at 6:18 am

Hi there,

That looks like you are using the EE Upcoming events widget rather than the [ESPRESSO_EVENTS] shortcode?

What your looking to do is likely possible, but sounds like you’ll need to customize the template used to include the details you need.

However, which template, depends on what you are using to output the events.

So, are you going to be using [ESPRESSO_EVENTS] or the widget?


YvonneDeffner

September 14, 2023 at 1:09 pm

Hi Tony,

Yes, I am using shortcode [ESPRESSO_EVENTS]. In detail [ESPRESSO_EVENTS category_slug=categoryname].

Best regards
Anna-Lena & Yvonne


Rio

  • Support Staff

September 15, 2023 at 2:04 am

We have existing widget you can use. but in order to modify it the way you wanted it, check this gist:

https://gist.github.com/Pebblo/d0d5f485ae0599e56e20

Add that to a custom functions plugin on your site, we have some documentation on creating one here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/

Then between lines 385 and 386 add whatever you want the widget to output
https://monosnap.com/file/lb7Skl374gmpCfpKXwdZWJ1QCTOQVj

Note that widget adds a ‘Custom Event Espresso Upcoming Events’ widget to Appearance -> Widgets and you need to use that in place of the default, its to allow you to edit the widget from within a plugin, editing the core plugins widget you’ll lose the modifications when EE updates, with the plugin you wont.

Thanks.


YvonneDeffner

September 15, 2023 at 2:28 am

Thanks for this suggestion, but that widget is not good working in my case.

I want to insert this widget/shortcode two or more times in one page with category filters to show event sections per category. And if I insert more than 1 widget it only shows 1 event list from first widget.

Only when I insert shortcodes [ESPRESSO_EVENTS category_slug=categoryname1] and [ESPRESSO_EVENTS category_slug=categoryname2] then it shows wished 2 or more event lists correctly.


YvonneDeffner

September 15, 2023 at 2:30 am

So can I creat custom shortcodes via custom function.php e.g. or is this not working?


Tony

  • Support Staff

September 15, 2023 at 5:22 am

Yes, I am using shortcode [ESPRESSO_EVENTS]. In detail [ESPRESSO_EVENTS category_slug=categoryname].

Apologies but I’m confused, the output on the page doesn’t match the [ESPRESSO_EVENTS] shortcode output.

It matches the Upcoming events widget.

See here: https://monosnap.com/file/XB1ajBj4yUnfd6v27p41yVyZKAFr9S


YvonneDeffner

September 16, 2023 at 12:22 pm

Sorry for confusing, you´re right, at the moment here (https://www.hundeschule-yd.de/) is widget used, but we want to show 2 sections with 2 widgets on 1 page (filtered by category, some events with dates showing, some without dates). But when I do this, the 2nd widget events are not visible in frontend – only when I add it via shortcode.

You can find it on this page, but I didn´t show it, because this page could be more confusing because it´s a mix of showing posts archive via Elementor and shortcodes: https://www.hundeschule-yd.de/veranstaltungen/


Rio

  • Support Staff

September 17, 2023 at 3:52 pm

Did try to use 2 Upcoming event widget, but works fine. Can you shoot us video of the setup in that page?

Also, please send us your system information.
https://monosnap.com/file/mAA3DH8w3DJJVTXQ0BhM8QAjSBHWo7

Tell us also your elementor version.

thanks

Viewing 10 reply threads

The support post ‘Add Details Button & Show Category at Shortcode Event list’ 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