Open [tribe_mini_calendar] Links in New Window

Home Forums Calendar Products Events Calendar PRO Open [tribe_mini_calendar] Links in New Window

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #960657
    DAVIS
    Participant

    I read two other threads regarding this, but I was unable to find the answer (or at least one that I could understand how to do myself).

    I would like to have the events that are listed with the [tribe_mini_calendar] shortcode open in a new window. My theme completely loads each page before showing anything, and I have about 120 events, so I want to prevent the visitors from having to reload a main page every time they look at an event.

    I have no php knowledge, but I can add lines of code (if someone gives me the code and tells me where to put it- haha).

    Thanks in advance!

    Chris

    #960774
    Brian
    Member

    Hi,

    Thanks for using our plugins. I can try to help out here, but I am limited in providing coding for customizations by our terms and conditions.

    The mini calendar can be modified following our themer’s guide:

    https://theeventscalendar.com/knowledgebase/themers-guide/

    You can try moving this file to your theme following the guide:

    events-calendar-pro\views\pro\widgets\modules\single-event.php

    to this location:

    yourtheme\tribe-events\pro\widgets\modules\single-event.php

    There you can modify this line: (line 54 in version 3.9.3)

    " rel="bookmark"><?php the_title(); ?>

    to this:

    " rel="bookmark"><?php the_title(); ?>

    That should do it.

    Let me know how that works out.

    Thanks

    #960895
    DAVIS
    Participant

    Brian,

    Thank you for the quick response!

    I can’t find a “tribe-events” folder in my theme folder. I did a search and still did not find the folder.

    I am using the Jkreativ theme and I am building the site locally.

    Chris

    #960899
    Brian
    Member

    You have to create the folder.

    #960904
    DAVIS
    Participant

    Brian,

    Thank you! The events in the [tribe_mini_calendar] list are now opening in a new window.

    Is it possible to have the events listed on the regular calendar (domain/events/) also open in a new window?

    Chris

    #960928
    Brian
    Member

    Great glad that helps.

    It is possible on the Main Views to get them to open in new windows.

    However, there is to many for me to provide that coding.

    You can follow our themer’s guide and look for the links in the templates after moving to your theme and add target=”_blank” to them.

    #960965
    DAVIS
    Participant

    Brian,

    I tried to find the template file for the main events view and add target=”blank” but it did not work. I’m afraid I will mess something up if I keep going. This is Greek to me.

    Which file controls the way links open on this view?
    Screenshot

    I really appreciate your help with this.

    Chris

    #961001
    Brian
    Member

    Unfortunately, I provided all the help I can. Per our terms and conditions we do not help on customizations. We still try to help out a bit and I provided some coding for the Mini Calendar. However, you are asking for a far larger customization that we do not have coding for and it is now beyond what we can provide.

    #961003
    DAVIS
    Participant

    Brian,

    I understand. Thank you for all of your help.

    Since you said it is possible, I will keep digging around and looking for places I can add target=”blank” to the code. Hopefully I’ll get lucky. 🙂

    Chris

    #961013
    Brian
    Member

    If you get the names of the files and lines of code that you think you would want to open in a new window and include them in one thread we maybe to take a quick look at let you know.

    I am going to close this ticket, but if you need anything else related to this topic or another please post a new topic on the forum and we can help you out.

    Thanks

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Open [tribe_mini_calendar] Links in New Window’ is closed to new replies.