Posted: March 27, 2017 at 10:45 pm
|
Apologies for all the emails… Hi. I’ve bought the user integration add-on, and i had previously purchased an event as a test. However the My Events page i’m using (applying the shortcode) i’m getting a “You have no events yet” message. Any reason why that might be? Thanks |
|
Slowly making progress…. My Event and ticket details are now showing (which is great) However, along with some of the important info, there is a lot of data not required. Including; “Approved Registration, Active Event Also there is a section at the top of my page with the label “actions” but an unclickable cog. There are clickable links further down my page (person, email, invoice, order confirmation). So my question is how best remove the elements i don’t need (or don’t do anything)? I can hide with CSS i’m sure, but i also wanted to make sure that it wasn’t part of a bigger issue having loads of non-essential content. Cheers again for your ongoing help. |
|
Hmmmmm, my page does not look (or behave) like this https://eventespresso.com/wp-content/uploads/2015/09/my-events-expanded-2.gif |
Hi there, It sounds like the CSS and JS files are not being loaded on the page, are you adding the shortcode directly to the page or are you using a visual builder on the site? If you create a new test page and add the |
|
|
Hi Tony, I’ve added the above shortcode to a normal page (i’m using Beaver Builder), but it’s correctly sitting in the text editor in normal backend view, so yes i guess no CSS or JS is being loaded. Is there another method to force the CSS & JS to load? I deactivated plugins and switched themes, and neither helped. Thanks |
Hi there, The CSS & JS should get triggered to load if the post ID for your page becomes associated with the short code. With the other plugins deactivated and switched over to the default theme, you then go to edit that page and make sure the page content has the shortcode, then you click on Update. Then you can reactivate the other plugins and switch back to the original WP theme. |
|
|
That’s fixed it. Many thanks for your help : ) |
|
Hi again. It’s working fine on a normal page now, but if i use the shortcode within my functions.php file it’s not formatting. Would that be expected? I’m using shortcodes on a number of places via functions.php and they seem to be fine. The way i’m using the shortcode in functions is as content within a woocommerce “my account” endpoint. Thanks – nearly solved : ) |
Yes that’s expected, EE can’t track the shortcode if you add it via a function so then the JS and CSS files aren’t loaded.
EE shortcodes?
Can you post the code you are using on a gist and add the url here so we can view it? |
|
|
Hi Tony No, the shortcodes are for Sensei (woo’s LMS) and myCred. Both of those work fine. I’ll sort the code and send across. Is there a way to call the JS & CSS when the shortcode is used within a function? |
You can do something like this:
and swap in your page ID. The important thing is the code need to fire early enough so it fires before |
|
|
Hi Josh Thanks for helping. Unfortunately, nothing shows at all when I use the above code with my page id. The page link for reference http://anzcpportal.staging.wpengine.com/my-account/ and then “My Upcoming Events”, although all tabs are the same page/pageID. Any thoughts? |
|
Apologies, it does work. I loaded up an old version of my functions.php without the shortcode (ooops). All good, thanks for your help : ) |
You’re welcome. FYI before you migrate to the production site from staging, you will need to contact WPEngine and ask them to set the Event Espresso checkout pages to be excluded from the cache: https://eventespresso.com/wiki/setup-wpengine-hosting-event-espresso/ |
|
The support post ‘My Events – "You have no events yet"’ 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.