2021-02-24, 04:06 PM
First of all, I used Google SEO Plugin and it still didn't work!
I'm trying to insert meta tags for google and facebook, so I need to insert the tags in forumdisplay template:
But facebook is not recognizing these tags, only when I put them inside headerinclude template, but only to work properly showing the name of the forum and its description needs to be inside forumdisplay template, because {$headerinclude} is used on other pages and they will all go with the same tags.
I can't understand why it doesn't work outside of headerinclude template, it doesn't make any sense, please help me!
I'm trying to insert meta tags for google and facebook, so I need to insert the tags in forumdisplay template:
<html>
<head>
{$headerinclude}
<title>{$mybb->settings['bbname']} | {$foruminfo['name']}</title>
<meta property="og:title" content="{$mybb->settings['bbname']} | {$foruminfo['name']}">
<meta property="og:description" content="{$foruminfo['description']}">
</head>
But facebook is not recognizing these tags, only when I put them inside headerinclude template, but only to work properly showing the name of the forum and its description needs to be inside forumdisplay template, because {$headerinclude} is used on other pages and they will all go with the same tags.
I can't understand why it doesn't work outside of headerinclude template, it doesn't make any sense, please help me!