Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- go to components/com_k2/views/item/view.html.php page in your site and comment lines 551 to 565 as follows -
- /*
- $document->setMetaData('og:url', $uri->toString());
- $document->setMetaData('og:title', (K2_JVERSION == '15') ? htmlspecialchars($document->getTitle(), ENT_QUOTES, 'UTF-8') : $document->getTitle());
- $document->setMetaData('og:type', 'article');
- $facebookImage = 'image'.$params->get('facebookImage', 'Small');
- if ($item->$facebookImage)
- {
- $parts = parse_url($item->$facebookImage);
- if (JFile::exists(JPATH_SITE.$parts['path']))
- {
- $image = substr(JURI::root(), 0, -1).str_replace(JURI::root(true), '', $item->$facebookImage);
- $document->setMetaData('og:image', $image);
- $document->setMetaData('image', $image);
- }
- }
- $document->setMetaData('og:description', strip_tags($document->getDescription()));
- */
- ---------------------------------------------------------------------------------------------------
- go to components/com_k2/views/itemlist/view.html.php page in your site and comment lines 700 to 709 as follows -
- /*
- $document->setMetaData('og:url', $uri->toString());
- $document->setMetaData('og:title', (K2_JVERSION == '15') ? htmlspecialchars($document->getTitle(), ENT_QUOTES, 'UTF-8') : $document->getTitle());
- $document->setMetaData('og:type', 'website');
- if ($task == 'category' && $this->category->image && strpos($this->category->image, 'placeholder/category.png') === false)
- {
- $image = substr(JURI::root(), 0, -1).str_replace(JURI::root(true), '', $this->category->image);
- $document->setMetaData('og:image', $image);
- $document->setMetaData('image', $image);
- }
- $document->setMetaData('og:description', strip_tags($document->getDescription()));
- */
- ------------------------------------------------------------------------------------------------------
- go to components/com_k2/views/latest/view.html.php page in your site and comment lines 274 to 277 as follows -
- /*
- $document->setMetaData('og:url', $uri->toString());
- $document->setMetaData('og:title', (K2_JVERSION == '15') ? htmlspecialchars($document->getTitle(), ENT_QUOTES, 'UTF-8') : $document->getTitle());
- $document->setMetaData('og:type', 'website');
- $document->setMetaData('og:description', strip_tags($document->getDescription()));
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement