Support » Plugin: BuddyPress Activity Plus » Adding target="_blank" to links

  • Number_6


    Hi folks. I’ve made it so that my activity stream links open with _blank, but the Activity Plus plugin doesn’t include that.
    I’m illiterate when it comes to php, so I don’t know where I could do that.

    I found a thread on that Buddypress premium site and an attachment was added of a modified version of link_tag_template.php. You have to be a premium member to download, so I thought I’d investigate myself.

    <div class="bpfb_final_link">
    	<?php if ($image) { ?>
    	<div class="bpfb_link_preview_container">
    		<a href="<?php echo $url;?>"><img src="<?php echo $image; ?>" /></a>
    	<?php } ?>
    	<div class="bpfb_link_contents">
    		<div class="bpfb_link_preview_title"><?php echo $title;?></div>
    		<div class="bpfb_link_preview_url">
    			<a href="<?php echo $url;?>"><?php echo $url;?></a>
    		<div class="bpfb_link_preview_body"><?php echo $body;?></div>

    If I figure this out for myself I will return and answer my own question.

  • The topic ‘Adding target="_blank" to links’ is closed to new replies.