Hi,
I am using Elementor to build my site. I have EventON and EventON Weekly add-on. I want events to open in their own page. I have copied the EventON page template (single-ajde_events.php) into my theme/eventon.
Screenshot 1 – I have tried creating an elementor template and adding shortcodes to get the eventcard and other info to display. I have used the following shortcode – [add_single_eventon show_exp_evc=”yes” id=”na” ev_uxval=”X” show_excerpt=”yes” show_et_ft_img=”yes”]. However it only shows me small portion of the events details and can’t find anywhere to control it.
Screenshot 2 – I then tried switching on “Stop using eventON single event template for single event pages” under Settings > Event Paging. That forces it to use “single-ajde_events.php” in my theme. This shows me the full event info but I have no control over it in elementor anymore.
How do I display this full event info via page template in Elementor? I need to be able to add forms and other info to the event pages.
Sep 11,2020 AT 3:33AM - 4 years ago -This is via elementor using the shortcode
This is via the eventON template
Sorry. Got that the wrong way round.
Using “Stop using eventON single event template for single event pages” makes the Elementor template work. Turning that off returns to using the EventON template in my theme.
It’s also now only ever opening the popup event view. I can’t make it open anything else! Impossible to have no click, accordion or single event page. I have even tried setting up weekly view calendar with ‘User Interaction’ set to ‘Open in Single Event Page’ and ‘Open in Single Event Page in new window’.
I’ve emptied cache and cookies. I’ve quit browsers and tried again.
None of them work. It’s stuck.
In fact, if I set the week view up as this, it works and opens a single event…
[add_eventon_wv disable_week_switch=”no” table_style=”0″ week_style=”0″ ux_val=”4″]
If I set the week view up as any of these, it doesn’t work and will only open the popup…
[add_eventon_wv disable_week_switch=”no” table_style=”1″ week_style=”0″ ux_val=”4″]
[add_eventon_wv disable_week_switch=”no” table_style=”0″ week_style=”1″ ux_val=”4″]
[add_eventon_wv disable_week_switch=”no” table_style=”1″ week_style=”1″ ux_val=”4″]
Hello,
Screenshot 1. If you are using Single Event shortcode you must add Event ID to it:
[add_single_eventon id=”23040″]
The only way of customizing Single Event Page template is through the code by following https://docs.myeventon.com/documentations/customize-single-events-page/. The thing is that you cannot edit it the way so it can be customized using Elementor. It seems that you need to copy the HTML structure of theme’s page.php or single.php and then add elements from Elementor with https://developer.wordpress.org/reference/functions/do_shortcode/, however I am not sure if Elementor supports this.
You can also send us a customization job request by creating a new ticket in here and selecting Customization Request as the category.
In fact, if I set the week view up as this, it works and opens a single event…
Could you tell us how did you set it up before?
Ok, I have a weekly view calendar on this page…
https://zoltanthesharpener.co.uk/test/
I have a single event view (using a customised EventON template). I am now using some do_shortcodes to place elementor elements into the page.
https://zoltanthesharpener.co.uk/events/falmouth/
It’s almost working except for the fact that if I use either of the following elements (table_style=”1″ OR week_style=”1″) in my shortcode, it stops opening in a new page and reverts to the popup regardless of any other settings… I want to use at least one of those styles as I don’t want the entire weeks events showing as a list under the calendar – I want them to show under their associated date.
This must be possible, somehow?
Please remove “–>” from Single Event Page template:
So https://zoltanthesharpener.co.uk/events/falmouth/ page should have WeeklyView at the bottom, correct?
Since it has this <?php echo do_shortcode( ‘[elementor-template id=”206″]’ ); ?>
No. The do_shortcode puts a form onto the page. I don’t need weekly view on the /Falmouth event page.
The problem is the weekly view (/test) won’t link to the event page.
Hi Graham,
What are your calendar options, have you enabled the link to the inside page?
Hmm … Which calendar options? (That’s a bit vague).
Do you mean this? If so, yes I have 🙂
Ah yes, thank you for the explanation. It seems that when you enable WeekView Layout Style and Table Layout Style it has only one User Interaction – Lightbox popup window.
However, I am going to assign this ticket to Ashan so he can tell you for sure. Please allow some time for him to get back to you, we greatly appreciate your patience and thank you for being a eventon customer! Also please disable any IP blocking on your site if there are any.
please try this patch fix for the events not opening as single event pages.
this should do the trick 🙂
Hi,
Thanks for that but unfortunately that code didn’t work. If I edit the code, as suggested, like this…
class-frontend.php
if( isset($atts['week_style']) && $atts['week_style'] == '1' && isset($atts['ux_val']) && $atts['ux_val'] == '1'){ $atts['ux_val'] = '3';}
The event doesn’t open anything at all. No link. Nothing
However! I messed around a little and if in the shortcode I add ux_val=”4″ (which is what the shortcode generator suggests ‘open in single event page’ should be) and then in the code you gave me change
$atts['ux_val'] == '1'
to
$atts['ux_val'] == '4'
and
$atts['ux_val'] = '3'
to
$atts['ux_val'] = '2'
Shortcode
[add_eventon_wv week_style="1" ux_val="4" table_style="1"]
class-frontend.php
if( isset($atts['week_style']) && $atts['week_style'] == '1' && isset($atts['ux_val']) && $atts['ux_val'] == '4'){
$atts['ux_val'] = '2'; }
Weirdly, it works! table_style and week_style on and the calendar opens in a single event page. I say weirdly because the shortcode generator suggests there isn’t an option for ‘ux_val’ = 2 … (0 (none), X (no interaction), 1 (slide down), 3 (popup), 4 (single event page) & 4a (single event in new window) are options).
Anyway, it’s solved for me now although it means I can’t update the plugin until it’s resolved officially.
Hi,
Thank you for sharing this – not sure if it is a hack ( bypassing things ) or a correct way, but for sure Ashan will check this and decide if there should be an issue to update.
No problem. For now at least, it is a hack in my opinion. But it’s working. Hopefully hear from Ashan about it so it can be fixed officially else I’ll not be able to update the plugin ☹️
Thanks for your assistance on it
You are welcome!
If you have a moment, we would greatly appreciate if you could kindly leave us a review at codecanyon! from your account > downloads. Cheers!
Graham, I am not sure what your code do? the fix I suggest, change the ux_val to 3 (open as lightbox) only if the passed on shortcode value is 1 (slide down) all the other shortcodes values should work fine as it is.
I’m not sure what it does either if I’m honest – except work.
The other variations do not work on my install though – if I use week style or table style I can’t use anything but popup (without this hack)
haha alright, ok let me see if I can test some more and on the next release to make sure other options work as well. With my code change the other event open methods work as well. so thats why I am wondering 🙂
Ok I’ll give it another go and report back
Hey Graham,
Can we close here, do you have any more questions?