Forum Replies Created
-
AuthorPosts
-
Barry
MemberOK … right now I see that both the upcoming events list and the calendar view include a sidebar: which template are you using just now?
Barry
MemberHi rcstribe,
Although originally appearing fine, once I click to go to another month, the calendar month view appears as: ← February Events Month
I can’t seem to replicate this, though I located your month view and hopped from month to month. Can you confirm is this has been resolved or else provide some step by step instructions detailing how I can see this?
If I switch from default page template to default event template, that problem goes away, although I lose my entire sidebar.
… And perhaps that is what you have done again – as I don’t see the sidebar. If you can confirm that that is what you are using we can investigate reinstating the sidebar in the first instance.
Regarding the possible solution from another thread: you cannot use PHP in those fields. What Jonah and Michael were probably alluding to were the specific combination of divs, classes and IDs that your theme uses on its own pages to facilitate proper formatting.
For instance, if your theme wraps its pages like so (this is purely an example):
<div id="woo_content"> <!-- more markup --> </div>Then you would copy those into the relevant before and after HTML fields. Does that make sense, or is it clear as mud?
Barry
Member(I think we posted at the same time there Andy – wasn’t trying to cut you off 😉 )
Barry
MemberYeah I don’t think that would work in this particular case – perhaps you were using a different page template at the point where Jonah made that suggestion?
What if you use the default events template instead, does that work ok for you (though I appreciate it loads the sidebar by default – but we could easily add a conditional statement to work around that)?
Barry
MemberSure ok, so I’ve used the concept you posted initially as my template here:
Ideally, if the start and end date are the same, it could look like this:
——————
Date: May 11, 2013
Time: 8:00 am – 12:00 pm
——————And came up with this code which you could use to generate something close to the above. There are some cases it doesn’t work well with, such as a multiday event – consider an event starting today and ending in a couple of days, starting at 7pm and ending at 9am. It renders like this:
Date: April 18, 2013 – April 20, 2013
Time: 7.00pm – 9.00amHowever that might not be an issue in your case. I also stripped out some of the event schema markup, simply because I wasn’t 100% sure that this sort of configuration would work well with it, however you can test and adjust as needed.
Barry
MemberWell, it certainly sounds like the problem is within our code. Though I can’t log in and fix this for you we’re definitely happy to try and guide you through the process if you’re up for that?
If you want to begin, can you tell me if you are happy to try setting up an FTP account and using an FTP client – or alternatively if you have access to a hosting control panel such as CPanel or Plesk and can access a file manager tool that way (your web host will let you know if this is possible).
Barry
MemberOK – as it happens Jonah (also on the support team) saw this thread and was about to jump in with an answer which I’ll relay to you now. His idea was to replace lines 51-65 in list.php with this code – does that help here?
Barry
MemberHi chirocare. Just because I’d like to be sure I’m not missing anything from your explanation, can you share the amended code using Pastebin, Gist or a similar service (and paste the link in here)?
Barry
MemberBarry
MemberFantastic 🙂
Barry
MemberOK, so if you’re happy with that then that’s great – we can always return to this later, but I’d strongly suspect the problem is the (Javascript) syntax error I mentioned in my last post, which would stop other pieces of code from running.
Barry
MemberNo problem, glad it’s working.
Just for future ref though it would be great if you could create your own thread for issues like this – as even though the problem may seem very similar it quite often isn’t – and it can become quite confusing if we have to guide people simultaneously through different stages of the troubleshooting process in a single thread.
Thanks!
Barry
MemberHi Melanie,
If you go ahead and set up a custom events.css file in your theme then you could add this code to the bottom of the file.
Does that help at all?
Barry
MemberHi akapothecary,
The first thing I’d highlight is that if you are at all unsure then it would really be worth spending some time reading many of the excellent tutorials out there in relation to using PHP to create websites.
You should also take the time to make a complete backup of your site.
There are a number of ways you might edit this file – you could use a piece of software called an FTP client to download a copy to your computer, where you could edit it and then upload it back to your server, or if your web host provides something like CPanel then you’ll probably have access to a file manager that you can use to do the same thing.
Personally I would recommend either of those in preference to this last option, which is editing the files via WordPress, which you can do by logging in to the dashboard then navigating to Plugins > Editor. You should then select Events Calendar PRO from the selector at the top right and then choose to edit events-calendar-pro/resources/events-admin.js.
After that simply replace the code with the version I provided in this post.
Once again, please backup first of all and if you don’t feel confident doing this then it may be best to wait until the next version or seek help from a designer/developer.
Thanks!
Barry
MemberHi Nenad.
This is really something you need to solve at the WordPress level (note that your dates are in English format across the entire site, not only on event pages). These two articles may be helpful:
– WordPress in Your Language
– Translating WordPressBeyond that I’m afraid there is not too much we can do – since, again, this relates to WordPress as a whole, not only The Events Calendar. Perhaps WPML can offer some further help here? They probably are a lot more knowledgeable about translating WordPress than we are 🙂
-
AuthorPosts
