Posted: July 12, 2012 at 11:48 pm
|
When I use the shortcode [ESPRESSO_CALENDAR] by itself on a page, the events calendar is not displayed. Not sure if the jquery is getting executed or not? CSS? I have created a couple open events for testing. Event list page works and so does calendar in sidebar, just not embedded in page. thanks for your help. |
Your theme is adding paragraph tags around the calendar script. Try adding Should look like this: |
|
Looks like the theme is auto-formatting paragraph tags within the calendar JavaScript. Try wrapping the calendar shortcode in [raw] short tags. See the troubleshooting section of the calendar documentation for more info. |
|
|
Thanks. The [raw] shortcode did the trick. Works great. |
|
Hi, |
Hi Tai, It looks like the scripts are missing from the footer. Check the footer.php file of the theme for the wp_footer() function. See this section of the calendar documentation for more info: https://eventespresso.com/wiki/calendar/#troubleshooting |
|
|
Thank you for the quick reply. |
|
Hello, I’d like to know also. I’ve read through the wiki and created a calendar template but that did nothing. Also added raw code and again, nothing. Everything else seems to be in order (I don’t see any js conflicts and the footer is in order). The only other plugins installed are yours. I don’t know what else the issue could be. What else do I need to do please?
|
tai and cg, Please post a link to the pages that are not working. |
|
|
|
Hi cg, The active WordPress theme’s custom.js is throwing an error at line 11. |
|
@Tai, check the tabs.js file in the current WordPress theme. It’s referencing jQuery with the $, which is throwing an error because jQuery is being loaded in safe mode. Swap out the $ for jQuery, or wrap the entire function in a no-conflict wrapper: http://digwp.com/2011/09/using-instead-of-jquery-in-wordpress/ |
|
|
Hi Josh, Thanks but what does that mean please? How do I resolve it? |
It’s an issue specific to this theme. You may need to contact the theme developer/author for information on how to fix this, as we do not offer support for 3rd party themes. That said, the specific error message is: Uncaught TypeError: Object [object Object] has no method ‘validate’ , Check a fresh copy of this theme to see if it enqueues and includes this script. It usually is something like jquery.validate.min.js and can be found in the theme’s js directory. Event Espresso also uses this script, but only on pages where there’ll be a form that needs validation. |
|
|
Hi Josh, Okay, thanks. I will follow up with the theme developer! |
|
Josh, |
Hi Tai, Try this: 1) Open up the tabs.js file from the scripts/js/ folder of the current WordPress theme.
2) Open up the custom.js file from the same theme and make the same changes:
3) Contact the theme author and request that they update the theme so jQuery can load in safe (no-conflict) mode. This will reduce the amount of support required for anyone using this theme. |
|
|
Josh, |
|
Hi Josh, Its been a few days since I followed up with the theme developer. It doesn’t appear that their support forum is very active. What are my options to get this working? |
You might try deleting the following lines from the theme’s custom.js file:
And then use a plugin for the contact form. The contact form 7 plugin would be my recommendation. Beyond that, we offer support tokens for premium support where we’ll fix the theme. |
|
|
Hello! I’m trying to insert the calendar, but it’s not showing up. Basically the events page ends up looking just like the home page. I’ve tried the [raw] tags, but they don’t seem to work. |
Hi Rachel, Is this page set to use the same template that the home page is using? That’s what I would check first. |
|
|
I’ve tried all the possible templates, and no matter what template I select, it still shows up the same. :/ |
Let’s take a step back then. Can you try switching to the twentyeleven theme temporarily? |
|
|
Yep, that shows it. |
Can you contact the theme author and check with them to see if they allow 3rd party shortcodes? I am not familiar with how that theme works, or why it would override the content on that page. A possible solution would be to create a custom page template to display the calendar. At the very end of this doc, there is an example of how to create a custom calendar page template. |
|
@cg Most of the javascript errors are coming from Google Maps, and I’m assuming they’re relating to the map you have in your footer. The other javascript error is coming from prettyPhoto which is trying to be added to a custom.js file that Josh referred to earlier. If contacting the theme developer has not yielded any results, what you might try is just commenting-out or removing those lines in your
and change it to this:
This will remove the gallery javascript (which you may or may not be using) but it will determine whether that’s what’s causing the issue or not. If that doesn’t solve the problem, try removing the Google Map in the footer (not sure if that’s being added via a plugin or if you’re hard coding it in a text widget). |
|
|
Hi Chris, Actually, the map is a regular WP widget with iframe code I grabbed from Google Maps. I do need a map there so any other alternatives? I will take care of the rest. Thanks |
There probably are alternatives, but I would just try it without for now, to see if that helps with your calendar issue. If the calendar displays without the map, add the map back in and test again. If it disappears, I’d start hunting for an alternative — either use the code directly from Google or a different plugin/widget or get a static map image that links to the Google Map… |
|
|
Hi, I added that code you gave me and removed the map but the calendar still isn’t showing. |
There’s still a javascript error coming from prettyPhoto, so that part hasn’t been resolved yet. Which means that’s much more likely to be the problem than the map. If you comment out that function as I suggested here and still get the problem, I’ll download the BizWay theme and do some testing locally to see if I can track down the issue. Currently that looks to be the most likely candidate. |
|
|
Hi Chris, I did comment out the function. I used Notepad to edit the js file. Not sure if that’s what I was supposed to use but when I download the file from my server, I can see the comment out is there. Maybe you can take a look into the theme and let me know please. |
I installed BizWay version 1.6 and I was able to get the calendar to display by commenting out the validation function in custom.js:
The version that I downloaded did not have a prettyPhoto function at all…maybe you’re using an older version? |
|
|
Hi Chris, Yes, I am definitely using an older version, BizWay v. 1.2. I just downloaded it only a few weeks ago from the WP theme repository. Is that the same place where you found BizWay 1.6? Nevermind, I see they updated the theme on 07-23. Okay, will update and report back!
|
|
Hi Chris, Can you provide an example of how you commented out this function? I just want to make sure that I’m doing the right thing. |
|
I see where you actually provided the code for me…. lol… I’m a little sleep deprived. But yes! It’s working! So thankful! Thanks a million Chris! |
|
Hi Chris, I noticed that my calendar is showing the same month, twice. Also, the event that’s showing is only held on Saturdays. Why is it showing every day of the week? Here’s the link: |
I’m looking at your calendar page now and I don’t see it displaying at all. However, generally if the calendar is displaying twice, it’s because you are using the calendar widget and haven’t set the calendar page in the widget settings. (Or you’re actually using the shortcode twice.) And since I can’t see your calendar, I can’t tell you exactly why it’s displaying on every day of the week unless you have set the event start date to be one saturday and the event end date to be a saturday several weeks in advance. That makes Event Espresso think that the event spans the entire time. If you are trying to display an event that occurs on multiple different Saturdays, you will need separate events for each occurrence. |
|
|
I am looking at my calendar, while logged in and logged out. Not really sure why you can’t see it. I thought the point of recurring events was simplify the process of adding the events. I have classes that meet for 12 week sessions (on Saturdays) throughout the year. That seems a bit tedious to me. |
I had to refresh my cache, I see the calendar(s) now. Though I’m not sure why it’s displaying twice (unless it’s one of the options I mentioned). Now that I’m looking at your calendar, I can see that you set the event start date for “Oracle Database Administration Program [6-week Bootcamp]” to November 3, 2012 and the event end date to December 8, 2012 — that means that, according to how you set up the event, the event starts at 9am on November 3 and ends at 5pm on December 8. What I have suggested in the past is to create a separate event for each class in the series. Then edit the second event and all events after it by setting an alternate registration URL to be that of the first event. That way, when they click on other events in the series, they’ll be redirected to the first event to register. Tedious, yes, but this is the only way the system can handle multiple events in a series, which is what you are trying to do. There will be more robust support for this when 3.2 comes out. |
|
|
When is 3.2 coming out? |
Approximately 83 tickets from now. |
|
|
I have the same problem where I added the calendar shortcode to my cooking school page. It showed up blank so I wrapped the calendar shortcode in [raw] short tags… as follows The part of the page where I wanted the calendar to appear ended up looking like this [raw] [/raw] |
@Peter what is the URL to the site? |
|
The support post ‘Events calendar not showing’ 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.