Meta Description tag for All Discussions page?
Is it possible within the extensions framework to add a new tag in HEAD section of the HTML and to do so only on the main All Discussions page? If it is then I should be able to whip what I want together, which is to define a meta Description for the main page that Google will pick up instead of:
Loading... Not signed in (Sign In). Hip in Houston - If you're hip and in Houston
then you belong here! Discussions · Categories · Search. Welcome, Guest ...
0
This discussion has been closed.
Comments
<?php /* Extension Name: My Custom Meta Info Extension Url: http://www.yourdomain.com/ Description: Adds my custom meta information to the header of my forum Version: 1.0 Author: Your Name Author Url: N/A */ if (@$Head) { $Head->Addstring("<meta name=\"description\" content=\"Stuff about my forum\" />"); } ?>That is correct, you can specify which pages you want it on by doing something like this:
<?php /* Extension Name: My Custom Meta Info Extension Url: http://www.yourdomain.com/ Description: Adds my custom meta information to the header of my forum Version: 1.0 Author: Your Name Author Url: N/A */ if (in_array($Context->SelfUrl, array("index.php","signin.php","apply.php","passwordreset.php","passwordrequest.php","account.php","search.php"))) { if (@$Head) { $Head->Addstring("<meta name=\"description\" content=\"Stuff about my forum\" />"); } } ?>