single organizer link blank

Home Forums Calendar Products Events Calendar PRO single organizer link blank

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1617879
    carosch
    Participant

    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

    #1619000
    Jennifer
    Keymaster

    Hi 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

    #1619356
    carosch
    Participant

    Hello,

    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 ?

    #1620034
    carosch
    Participant

    sorry I clicked on correct answer by mistake
    I still need help

    caroline

    #1621718
    carosch
    Participant

    Hello,

    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
    Caroline

    #1624925
    Jennifer
    Keymaster

    Hi 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!

    #1627345
    carosch
    Participant

    Hello,

    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

    #1628533
    carosch
    Participant

    Hello, could you help me to write with correct syntaxe ?

    thanks
    Caroline

    #1630956
    Jennifer
    Keymaster

    Hi 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!

    #1644905
    Support Droid
    Keymaster

    Hey 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

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘single organizer link blank’ is closed to new replies.