Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: robinwickens on January 09, 2009, 04:18:31 PM

Title: Meta Tags
Post by: robinwickens on January 09, 2009, 04:18:31 PM
I searched forums but could find no reference.
Where do I add/modify meta tags for main page?
Are there any plug-ins for integrating with Wordpress?
Why is the sky blue and the sea green and my eyes bloodshot?
Any help appreciated!

Robin.
Title: Re: Meta Tags
Post by: H on January 09, 2009, 04:31:03 PM
Welcome to SMF

QuoteWhere do I add/modify meta tags for main page?

Look at the header in Themes / default / index.template.php :). If you'd rather not edit code, there is a meta tag mod you can install

QuoteAre there any plug-ins for integrating with Wordpress?

We don't currently have any official wordpress integration however if you search this site, you should find an unofficial integration

Quote
Why is the sky blue and the sea green and my eyes bloodshot?
Any help appreciated!

Afraid I'm not sure on this :P
Title: Re: Meta Tags
Post by: robinwickens on January 09, 2009, 05:27:51 PM
Tried that!
Say's:
Try to handle it with the upper level index.php. (it should know what to do.)
Went there!
No obvious reference to <head> </head>
Where now?

Robin.
Title: Re: Meta Tags
Post by: H on January 10, 2009, 01:27:29 PM
index.template.php is a totally different file to index.php! ;)

Open it and you'll be able to find:

<meta http-equiv="Content-Type" content="text/html; charset=', $context['character_set'], '" />
<meta name="description" content="', $context['page_title'], '" />', empty($context['robot_no_index']) ? '' : '
<meta name="robots" content="noindex" />', '
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />