Hi
Hehe. I was working on Your question when You have added both this posts. Please remember that every bump of the thread moves question to the end of the line and You need to wait longer. Luckly I have this one oppenend already.
Please edit file /html/com_k2/templates/default/item.php and on top of this file add this code:
- Code: Select all
<?php if( !empty($this->item->image) ): ?>
<script type="text/javascript">(function($) {$(document).ready(function() {
$('head').append('<meta property="og:image" content="<?php echo $_SERVER['HTTP_HOST'] . $this->item->image; ?>" />');
});})(jQuery)</script>
<?php endif; ?>
This still may need a small fix, because I'm not sure the path without seeing it in live site.