Home › Forums › Additional Help › Extensions › Make Event Titles Link to the Event Website URL
- This topic has 18 replies, 2 voices, and was last updated 5 years, 6 months ago by Andras.
-
AuthorPosts
-
September 14, 2018 at 11:15 am #1622265artvallartaParticipant
First of all, new user, loving the plug-ins. Downloaded the “Make Event Titles Link to the Event Website URL” extension and have a question. When you click on the link it “stays within” wordpress. I’m looking for it to create a new window with that url. Honestly the reason why is I’m using your plug-in as a work-around in WIX as I can’t find a calendar as great as yours. So I made a WordPress site just for your calendar and then embed that into WIX. Working great until you press a link, then it stays within the calendar and not enough room etc…. would really like to to pop-up into new window.. Sorry to be so wordy… Just want to make it work!!! thanks
September 17, 2018 at 1:43 pm #1623730AndrasKeymasterHey artvallarta,
Thanks for your kind words, super stoked to hear you like our plugin!
Hmmm… that is not too difficult but takes some time.
Depending on which calendar you want to do it you will need to create some template overrides.
You need to look for lines that contain ‘tribe_get_event_link()’, for example in
wp-content/plugins/the-events-calendar/src/views/list/single-event.php
[code language=”php”]<a class="tribe-event-url" href="<?php echo esc_url( tribe_get_event_link() ); ?>" title="<?php the_title_attribute() ?>" rel="bookmark">[/code]
and change that / add ‘target=”_blank”‘ for it to open in a new window, like this:
[code language=”php”]<a class="tribe-event-url" href="<?php echo esc_url( tribe_get_event_link() ); ?>" title="<?php the_title_attribute() ?>" rel="bookmark" target="_blank">[/code]
By the way, have you heard about Loxi already? That is one of our newest things. It’s basically an Events Calendar that you can embed wherever you want, for example into a WIX site. Check it out!
Cheers,
AndrasSeptember 18, 2018 at 8:48 am #1624326artvallartaParticipantThank you for your detailed reply. I’m following you for the most part. I’m looking to modify the monthly view and the mini calendar view. Can you kindly provide the exact locations and the code change. I so appreciate your support.
Yes, I did look at Loxi…. It was too basic for our needs.
I look forward to your reply.
September 19, 2018 at 12:50 am #1625019AndrasKeymasterFor month view you will need to create an override for this file:
wp-content\plugins\the-events-calendar\src\views\month\single-event.php
here:
wp-content/themes/[your-theme]/tribe-events/month/single-event.php
You need to change this line:
<h3 class="tribe-events-month-event-title"><a href="<?php echo esc_url( $link ) ?>" class="url"><?php echo $title ?></a></h3>
to this:
<h3 class="tribe-events-month-event-title"><a href="<?php echo esc_url( $link ) ?>" class="url" target="_blank"><?php echo $title ?></a></h3>
This should do the trick.
I did look at Loxi…. It was too basic for our needs.
Our Loxi team would be happy to hear about what features you would like to see in Loxi in the future. Could you share some ideas with us? Thanks!
A.
September 19, 2018 at 10:23 am #1625555artvallartaParticipantYou guys rock! – worked like a charm.. Now I need to do the same for the mini-calendar shown here (for the moment), can you kindly provide me those exact lines like you did for the monthly calendar. Thanks so much…
As for Loxi, the main issues for me were recurring events. I have over 2200 loaded at the moment and only 75% done loading our calendar. Also needed a mini cal and they don’t offer.. Hope that helps….
Thanks again for your superstar customer service. I’m in awe!!!
Alan
September 19, 2018 at 10:25 am #1625557artvallartaParticipanthttps://artvallarta.cloudaccess.host/?page_id=524 – sorry forgot the link to the mini cal we are using.. thanks
September 20, 2018 at 2:38 am #1626166AndrasKeymasterFor the mini cal widget override this file:
wp-content/plugins/events-calendar-pro/src/views/pro/widgets/modules/single-event.php
here:
wp-content/[your-theme]/tribe-events/pro/widgets/modules/single-event.php
Change line 124 from this:
[code language=”php”]<a href="<?php echo esc_url( tribe_get_event_link() ); ?>" rel="bookmark"><?php the_title(); ?></a>[/code]
to this:
[code language=”php”]<a href="<?php echo esc_url( tribe_get_event_link() ); ?>" rel="bookmark" target="_blank"><?php the_title(); ?></a>[/code]Let me know. 😉
A.
September 20, 2018 at 8:05 am #1626414artvallartaParticipantWorked like a charm.. I am amazed at your support. Other plugins could learn a lot from your company….
Sorry to say I have another.
Also need to make the titles click open in a new window. thanks as always….
I know how to get rid of the “more information” tab, but not the “continue reading”.. I know that is not your issue, but the wp template. looking at their support now.
Thanks again for everything.
September 21, 2018 at 2:58 am #1627168AndrasKeymasterThe continue reading is actually part of the excerpt that shows up.
If you want to remove that add this to your functions.php file:
[code language=”php”]
function custom_excerpt_more($more) {
return;
}
add_filter(‘excerpt_more’, ‘custom_excerpt_more’);
[/code]To change link in day view:
wp-content/plugins/the-events-calendar/src/views/day/single-event.php
to
wp-content/[your-theme]/tribe-events/day/single-event.php
and add the ‘target=”_blank”‘ in line 30.
Do you have any more places where you want to change this, so we can settle all in one? 😉
A.
September 21, 2018 at 9:15 am #1627557artvallartaParticipantMy apologies Andres for going on and on. The last reply worked perfectly thanks.
These are the final requirements.
Remove “Event Calendar” above the actual calendar – both monthly view and widget mini-calendar
Remove the “See all” clickable link on the day view calendar. The hover-over information in fine.
Remove the “location” clickable link on the day view calendar. The location listing is fine, just not the link.thanks again….
Alan
September 24, 2018 at 2:12 am #1628877AndrasKeymasterHi Alan,
I don’t see “Event Calendar” above your actual calendar, at least not on this page.
You can hide that with css. You can use the inspector tool of your browser to find out what css class you need to address.
The same goes with “See All”. For this you’ll need:
.event-is-recurring a { display: none; }
For the location clickable a template override will be needed. This:
wp-content/plugins/the-events-calendar/src/views/modules/meta/venue.php
Here:
[your-theme]/tribe-events/modules/meta/venue.php
Change
tribe_get_venue()
to
strip_tags( tribe_get_venue() )
This is about as much as I can do.
A.
September 25, 2018 at 7:56 am #1630031artvallartaParticipantThanks as always Alex.
I was able to get the “see all” taken care of. thanks
As for “Event Calendar” – that appears on https://artvallarta.cloudaccess.host/?page_id=524 the mini cal widget
As for the clickable location. I find the path, but really unsure which line as I can’t find the exact reference you mentioned.
thanks again
Alan
September 26, 2018 at 12:24 am #1630787AndrasKeymasterHi,
For the widget you can just change the widget title under Appearance > Widgets and if I remember correctly you can leave it empty.
If that doesn’t work, then you can use this css:
[code language=”css”]
.tribe_mini_calendar_widget .widget-title {
display: none;
}[/code]For the location, it’s on line 26 that looks like this:
[code language=”php”]<dd class="tribe-venue"> <?php echo tribe_get_venue() ?> </dd>[/code]
Let me know if that does the trick.
A.
September 26, 2018 at 8:46 am #1631105artvallartaParticipantGreetings.. First one worked like a charm
The venue one did not. This is how line 26 looks now
<dd class=”tribe-venue”> <?php strip_tags( tribe_get_venue() )cho tribe_get_venue() ?> </dd>
Look forward to hearing from you
Alan
September 27, 2018 at 3:30 am #1631914AndrasKeymasterHey,
that line should look like this
[code language=”php”]
<dd class="tribe-venue"> <?php echo strip_tags( tribe_get_venue() ) ?> </dd>
[/code]I checked and this gave me the expected result.
A.
-
AuthorPosts
- The topic ‘Make Event Titles Link to the Event Website URL’ is closed to new replies.