The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

All-in-One Event Calendar
[resolved] Open and event in a new window (9 posts)

  1. morietti
    Posted 4 years ago #

    I have asked this question before and it was answered perfectly! Just that now with the newest update of wordpress I had to update this plugin.

    I have the all-in-one-events-calendar on the Home Page.

    The calendar is displayed as a month.

    When an event within a day, such as Aug 11, is clicked I am taken to a page that has the for example the url ../?ai1ec_event=executive-committee-meeting-3&instance_id=27374. There is no problem there, it works great. But I would like that link to open up in a new window as odd as that may sound.

    I tried to figure out how to get those links of events to open up in a new window when clicked on. I was looking for the where to put the target="_blank" but could not find the place to put it.

    I noticed that the month.php is no longer in app/view/month.php it is now in ../themes-ai1ec/vortex

    Also just in case where would the week one be.

    Thanks again!


  2. Richard
    Posted 4 years ago #

    Hi morietti,

    To open an event in a new window, you can open the file month.php and on line 46 change

    <a>post_id ) ) . $event->instance_id ?>"


    </a><a>post_id ) ) . $event->instance_id ?>" target="_blank"

    You can also do a similar thing in the other files: oneday.php, agenda.php, postboard.php and week.php in wp-content/themes-ai1ec/vortex

    I hope that helps.

    [Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your code has now been permanently damaged/corrupted by the forum's parser.]

  3. morietti
    Posted 4 years ago #

    oh shoot and it's not resolved as listed in this forum.

    I tried to change the code to what is listed above and then different variations of above. But I guess the code was danmaged/corrupted too much by the forum's parser.

    Thanks though!

    Maybe try again? :)

  4. Richard
    Posted 3 years ago #

    Hi morietti,

    I will ask our Technical Support Specialist to double check the above code is accurate.

  5. Ula Szczepaniak
    Posted 3 years ago #

    Hi Morietti

    Please use this code in line 46:
    <a href="<?php echo esc_attr( get_permalink( $event->post_id ) ) . $event->instance_id ?>" target="_blank"

    Let me know if this resolved your problem.


  6. morietti
    Posted 3 years ago #

    Hey thanks for your efforts. Unfortunetly it did not work.

  7. Ula Szczepaniak
    Posted 3 years ago #

    Hi morietti:

    This code is correct, however the line number may change depending on which version of the calendar you are using. If you like, you can email me your month.php file and I can insert this code in the appropriate place for you: help@time.ly Please put "for Technical Support Specialist" in the title and copy/paste the above text so that we have the context. Thank you.

  8. morietti
    Posted 3 years ago #

    Thanks you Ula Szczepaniak!! I just emailed the month.php

  9. Richard
    Posted 3 years ago #

    I am going to mark this as resolved as Ula is now dealing with the case on a separate platform.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • All-in-One Event Calendar
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.