WordPress.org

Ready to get started?Download WordPress

Forums

All-in-One Event Calendar
How to Open Link in New Window / New Tab? (3 posts)

  1. alvbayu
    Member
    Posted 1 month ago #

    Hi,

    How to make links in the calendar (month view) open a single event page in new tab / in new window.
    I would like a new separated window opened when a user clicks an event title.

    I'd appreciate if someone could help me out with this. Please refer me to the file name that should be edited, and perhaps also how to edit it. Thanks!

    https://wordpress.org/plugins/all-in-one-event-calendar/

  2. Jashan
    Member
    Plugin Author

    Posted 1 month ago #

    Hello,

    Month view is controlled by file:
    wp-content/plugins/all-in-one-event-calendar/public/themes-ai1ec/vortex/twig/month.twig

    Edit this file to make changes, and make sure you clear cache from plugin folder to reflect changes.

    Take care

  3. alvbayu
    Member
    Posted 1 month ago #

    Hello Jashan

    Thanks for the reply.

    Unfortunately, I tried to change:

    <a href="{{ event.get_runtime( 'instance_permalink' ) | e('html_attr') }}"

    To following line:

    <a target="_blank" href="{{ event.get_runtime( 'instance_permalink' ) | e('html_attr') }}"

    But it does not make any change.
    Links (in month-view page) is still opened in same window.
    (I have cleared the plugin cache folder too)

    I'm new to this .twig things.
    Could you help me a little bit more by pointing me to a more detailed solution please?

    Thanks again!

Reply

You must log in to post.

About this Plugin

About this Topic