Home › Forums › Calendar Products › Events Calendar PRO › single organizer link blank
- This topic has 8 replies, 2 voices, and was last updated 5 years, 7 months ago by Jennifer.
-
AuthorPosts
-
September 10, 2018 at 12:14 pm #1617879caroschParticipant
Hello,
I want to make a blank target for the link of an organizer, because, by default, into the single organizer page, the link didn’t open in a new tab.
But I can’t find which php file to modify to have a blank target link.could you help me?
Caroline
September 11, 2018 at 2:20 pm #1619000JenniferKeymasterHi Caroline,
Thanks for reaching out!
You can make this change via a template override – the template you’ll want to customize can be found at wp-content/plugins/the-events-calendar/src/views/modules/meta/organizer.php.
You’ll want to modify this line:
<?php echo tribe_get_organizer_link( $organizer ) ?>
We are limited in the amount of support that we can provide for customizations, but if you get stuck or have any questions, please let me know – I’ll be happy to try to point you in the right direction!
Thanks,
Jennifer
September 12, 2018 at 4:23 am #1619356caroschParticipantHello,
thank you for the answer.
But sorry I don’t understand how to modify the attributes aof the link.
where are the “a href target” elements are define ?September 12, 2018 at 12:51 pm #1620034caroschParticipantsorry I clicked on correct answer by mistake
I still need helpcaroline
September 14, 2018 at 2:30 am #1621718caroschParticipantHello,
could you tell me where I find the <a href attributes in order to add a target=”_blank” for
tribe_get_organizer_link( $organizer ) ?thank you
CarolineSeptember 18, 2018 at 6:23 pm #1624925JenniferKeymasterHi Caroline,
Try replacing that line (in your copy of the organizer.php file – you’ll want to create this following the instructions in our themer’s guide) with this one:
' . tribe_get_organizer( $organizer ) . ''; ?>
Let me know how this works!
September 21, 2018 at 7:32 am #1627345caroschParticipantHello,
sorry, but it seems that I didn’t explain well what I need
it’s this information I need to open in a new tab
<dd class="tribe-organizer-url"> <?php echo $website; ?> </dd>
Caroline
September 23, 2018 at 3:58 am #1628533caroschParticipantHello, could you help me to write with correct syntaxe ?
thanks
CarolineSeptember 26, 2018 at 5:51 am #1630956JenniferKeymasterHi Caroline,
Sorry for the misunderstanding here…you’ll want to add the snippet in this post to the functions.php file of your child theme. That snippet will also set the event website and venue website link targets to blank, so if you don’t want that to happen, you can remove the following lines:
add_filter( 'tribe_get_event_website_link_target', 'cliff_blank_target_for_new_window' );
add_filter( 'tribe_get_venue_website_link_target', 'cliff_blank_target_for_new_window' );Let me know if you have any other questions!
October 18, 2018 at 9:35 am #1644905Support DroidKeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘single organizer link blank’ is closed to new replies.