Viewing 15 replies - 46 through 60 (of 68 total)
  • Hey Geoff,

    Glad that worked. Let us know if you need anything else!

    – Jonah

    I’m posting this question here because it looks like there is some activity on here. I posted this as a general question yesterday and I’m not getting any response at all.

    I am using “The Event Calendar” – in the settings, under “General” I have selected “Calendar” from the “Default view for the Events” option. But when I view the page it shows it in “Event List” mode. No matter which option I choose, it shows “Event List” rather than “Calendar”.

    Does anyone have a fix for this?

    Also, I my navigation menu does not show on the Events page or on the detail events page – it works fine on every other page.

    Hi JustDuckyDesigns,

    Sounds like an issue with permalinks. Have you tried switching your permalinks to ‘Postname’ in Settings > Permalinks?

    – Jonah

    Hi,

    I have the same issue with calendar buttons in grid view.
    I have The Events Calendar v.2.0.8.
    When at least one event is on the grid there is no problem, but when there are no events in the month the buttons at calendar header are misplaced.

    Example Good: https://pttkpan.pl/wydarzenia/2012-07
    Example Wrong: https://pttkpan.pl/wydarzenia/2012-08

    I also notice that in source of the rendered page (marked on red) is the problem, and also there is no page title:
    https://pttkpan.pl/wp-content/blogs.dir/17/files/2012/07/grid.png

    In source file views/gridview.php there are no closing “p”, “span” or “div”, maybe some hook or JS script is editing that?

    Best Regards
    Piotrek

    Hi Piotrek,

    As far as we know now this is a conflict with certain themes that utilize the wpautop function which automatically inserts p and br tags in some circumstances.

    The only work around for this is kind of involved and you may need to hire a developer to help you if you can’t figure it out. Basically, you have to first go into the plugin settings Events > Settings > Template and change the Events Template to the Default Events Template which will force the template to use it’s own built in templates for rendering event pages. Now, this is likely going to not look as good as your current template setting so what you need to do is modify the plugins template, bringing in some of the code from your themes to get things looking better. The plugins templates you’ll want to modify are:

    /wp-content/plugins/the-events-calendar/views/ecp-page-template.php and /wp-content/plugins/the-events-calendar/views/ecp-single-template.php. Make copies of those files and place in an ‘events’ folder in your theme. Next, open up your theme’s page.php template file and find all HTML wrapper code (usually divs) and migrate this over to the plugin template files, wrapping the template code with your themes wrapper code. Where you’ll want to replace stuff is right where tribe_events_before_html() and tribe_events_after_html() are called in the plugins template files. You’ll want to put in the beginning part of the wrapper code where tribe_events_before_html() is and the closing tags where tribe_events_after_html() is. And that’s about it! Once you do that and if it’s done right and you may need to play around with it a bit, it should work.

    That’s the only workaround there is for this issue right now so if that doesn’t work you’ll either need to try it again, hire someone to help you or wait for the fix to be officially released. One of our devs stated that it’s not a problem with our plugin but a problem with the way some themes use wpautop to auto insert p and br tags into the page in certain cases. So, you could try reporting the issue to your theme developer as well.

    I hope that helps!

    – Jonah

    Hi Jonah,

    My girlfriend – she’s not a developer ?? – figured out that if this bug appears when there are no events in the month, so I must insert some event where there are no one.
    The solution is very simple to implement, I copy “views/table.php” from the plugin folder to my template “events” folder and add directly above first occurence $monthView (on line 31) this condition:


    if( !$eventPosts ) {
    $eventPosts = new stdClass();
    $eventPosts -> EventStartDate = ‘2012-‘. $month .’-01 00:00:00′;
    $eventPosts -> EventEndDate = ‘2012-‘. $month .’-01 00:00:00′;
    $eventPosts = array( $eventPosts );
    }

    And this works grate – and the event is not displaying of course ??

    Best Regards
    Piotrek

    Hi Guys. I’m having the same problem with the calendar view buttons. when I go to another month they go above my logo.
    I have read the posts between all of you but still couldn’t understand how to resolve the issue.
    my site (still under construction) https://sfgmag.com/events/

    I will very much appreciate any kind of help. i have tried several othe calendars but non was to my satisfactory as much as this one.

    -Mosh

    Hi Mosh,

    Write me an email on: [ redacted ] and I will send you my table.php file, You must only paste the file on “events” folder in Your template folder.

    Best Regards
    Piotrek

    Hi Piotrek,

    Thank you for providing me with the Table.php file. the solution runs great and resolved my problem! thank you!!

    Hi Mosh,

    It’s not a problem, glad that worked ??

    Best Regards
    Piotrek

    Hi Piotrek,

    This is brilliant! I don’t know what your code actually does but I just tested it in one of the themes that has this issue and it works like a charm and much easier of a solution that mine. Thank you for sharing this and we’ll be sure to share/provide this solution with other users who are having this problem.

    Thanks,
    Jonah

    Hey there,

    I’m having the same problem with the calendar view buttons (the button go above my logo).
    See the problem at (my site is still under construction):
    https://www.okapi-weinlese.com/events/monat/
    Like mh1562 I read the posts between all of you, but didn’t finde a solution that worked for me. :/
    it.beyer.pl would you be so kind and send me the table.php as well?

    I will appreciate any kind of help. ??
    Best regards
    Okapi

    Piotrek, you still monitoring this thread? Anything you can do to help Okapi out here?

    Thanks for stepping up, mh1562! I don’t know if they allow email addresses to be posted on here, so if that doesn’t work you guys can always use pastie.org or a related solution.

    Hi there,

    sorry for my absence, here is a solution: https://pastie.org/4560940

    Copy and Paste the code to created by You: “table.php” file to created by You folder: “events” in Your theme: wp-content\themes\your-theme

    and thats all ??

    Best Regards
    Piotrek

Viewing 15 replies - 46 through 60 (of 68 total)
  • The topic ‘[Plugin: The Events Calendar] Calender buttons misplaced’ is closed to new replies.