• Resolved der_velli

    (@der_velli)


    Hi
    How can i set the whole preview module as a link. Right now only the image and the URL is linked – i’d like to set all linked (or the headline and the preview text also)
    cheers

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hey @der_velli,

    Hope you’re well.

    Can you change /wp-content/plugins/buddypress-activity-plus/lib/forms/link_tag_template.php content with this;

    <?php
    $target = in_array(BPFB_LINKS_TARGET, array('all', 'external')) ? 'target="_blank"' : '';
    ?><div class="bpfb_final_link">
    	<?php if ($image) { ?>
    	<div class="bpfb_link_preview_container">
    		<a href="<?php echo esc_url($url);?>" <?php echo $target; ?> ><img src="<?php echo esc_url($image); ?>" /></a>
    	</div>
    	<?php } ?>
    	<div class="bpfb_link_contents">
    		<div class="bpfb_link_preview_title"><a href="<?php echo esc_url($url);?>" <?php echo $target; ?> ><?php echo $title;?></a></div>
    		<div class="bpfb_link_preview_url">
    			<a href="<?php echo esc_url($url);?>" <?php echo $target; ?> ><?php echo $url;?></a>
    		</div>
    		<div class="bpfb_link_preview_body"><a href="<?php echo esc_url($url);?>" <?php echo $target; ?> ><?php echo $body;?></a></div>
    	</div>
    </div>
    

    It will make all elements as a link, I hope it can solve the issue. But this file changes will be deleted once the plugin updated so you need to do this again.

    Cheers,
    Oguz

    Thread Starter der_velli

    (@der_velli)

    That was also my first thought – I hoped it would be different. Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to set link to the whole preview module’ is closed to new replies.