Moving iCal Buttons

Home Forums Calendar Products Events Calendar PRO Moving iCal Buttons

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #965120
    Erin Carter
    Participant

    I believe this is a Events Calendar Pro question.

    Is there a way to move the iCal buttons at the bottom of the monthly views to the top? If so, what is the easiest way to do this?

    #965189
    Brian
    Member

    Hi,

    Thanks for using our plugin. I can help with this.

    To add the iCal button above the month view add this to your theme’s functions.php:

    https://gist.github.com/jesseeproductions/9b0a879803c995d6e10d

    To remove the lower button add this snippet:

    https://gist.github.com/jesseeproductions/6c49c1868967f6a4f391

    You may have to add some css to get it to display exactly how you would like.

    Let me know how that works out.

    Cheers

    #965208
    Erin Carter
    Participant

    Brian,

    Thanks! That actually worked out exactly as I needed it.

    Thanks

    #965219
    Erin Carter
    Participant

    This reply is private.

    #965249
    Brian
    Member

    Hi,

    I did some more testing and it appears that coding does not work as intended, especially with the ajax.

    I updated the snippet above and test and it looked to work better.

    Please try that.

    #965326
    Erin Carter
    Participant

    Hi Brian,

    That fixed the original issue, but now two other issues have shown up and I’m not too sure why.

    On months without events the “Export Month’s Events” button shows up, where it use to not.

    And the “Export All Events” button now longer shows when it use to.

    And now the action and function to remove the lower link buttons doesn’t work on URL’s that have “/” at the end, which seems to be happening when clicking the previous or next month buttons on the calendar.

    The reply I sent earlier with the links should still show the issues there.

    Any idea what could be the issue with this?

    #965449
    Brian
    Member

    Hi,

    And now the action and function to remove the lower link buttons doesn’t work on URL’s that have “/” at the end, which seems to be happening when clicking the previous or next month buttons on the calendar.

    It appears the customization do not work because your url’s do not end with a blackslash.

    What are you permalink settings?

    On months without events the “Export Month’s Events” button shows up, where it use to not.

    Is this in the footer or the header?

    Let me know about those two, but I am limited on troubleshooting customizations and may not be able to resolve issues that are caused by adding them, but will do my best to help here.

    Thanks

    #965497
    Erin Carter
    Participant

    Hi Brian,

    Our Permalink settings are set to custom structure: /%postname%

    Should I add / to that?

    And can you define what you mean by in the footer or the header? The button shows up above the calendar.

    #965602
    Brian
    Member

    Hi,

    If it was my site I would have the backslash on the end. Not sure if there was a reason it was left off though.

    By header and footer I simply meant above and below the month view.

    #965620
    Erin Carter
    Participant

    Brian,

    I updated our permalink structure to have the trailing / on all posts and pages.

    It looks like the only issue left to resolve is the button showing up on months that have no events, and then the export all events button is no longer being displayed.

    Any idea’s on what could fix this? Also, if you could resend the first snippet of code I’d like to give that a try and see if our updated permalink structure will help.

    Thanks

    #965858
    Brian
    Member

    Hi,

    Ok so the coding I provided does not have a check if there are events or not so it will always show. I am not able to provide all the coding for a customization. That is what I have to get you started and if you would like more features to it that will have to be up to you.

    That new customization might be causing the export all events button not not display. I am not sure why that is the case.

    However, since both of these are customizations I cannot troubleshoot them. If they were both features I could troubleshoot until it is correct. I can try to answer more questions on how something works, but I am pretty much at the limits of what I am allowed to do.

    Also, if you could resend the first snippet of code I’d like to give that a try and see if our updated permalink structure will help.

    I tested that coding and it actually did not work at all so I no longer have it as I replaced it with the other snippet to get it to work.

    Cheers

    #969127
    Brian
    Member

    Since there is has not been any activity on this thread for over 2 weeks so I am now closing it. Feel free to start a new thread if you have further issues. Thanks! 🙂

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Moving iCal Buttons’ is closed to new replies.