Support » Plugin: All-in-One Event Calendar » [Plugin: All-in-One Event Calendar] Open and event in a new window

  • Resolved morietti


    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!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Richard


    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.]

    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? 🙂



    Hi morietti,

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

    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.


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

    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: Please put “for Technical Support Specialist” in the title and copy/paste the above text so that we have the context. Thank you.

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



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

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Plugin: All-in-One Event Calendar] Open and event in a new window’ is closed to new replies.