[Solved] Can I add new meta lines in overall_header.php
Forum rules
You dont have to use ModX or make your mod AutoMod compatible. A simple textfile is fine
But if you post Mods here You also have to give support
You dont have to use ModX or make your mod AutoMod compatible. A simple textfile is fine
But if you post Mods here You also have to give support
[Solved] Can I add new meta lines in overall_header.php
When I view source of index:
<meta name="keywords" content="" />
<meta name="description" content="" />
that display, so I was thinking onl for viewtopic and viewforum the meta tags are used.
So is it possible for me to add under the two meta's the same meta's again but fill them up.
<meta name="keywords" content="" />
<meta name="description" content="" />
that display, so I was thinking onl for viewtopic and viewforum the meta tags are used.
So is it possible for me to add under the two meta's the same meta's again but fill them up.
Last edited by master412160 on 31 Oct 2011, 13:24, edited 1 time in total.
Can I add new meta lines in overall_header.php
Forum SEO only covers viewforum.php and is displayed when viewing a forum.
Can I add new meta lines in overall_header.php
I know that very well. But my question is can I just add the meta tag for keywords and description twice in the overall_header.php
Without causing the seo mod not to work, so the meta is useless due being used twice.
So it would look like this:
Without causing the seo mod not to work, so the meta is useless due being used twice.
So it would look like this:
Code: Select all
<meta name="keywords" content="<!-- IF SCRIPT_NAME == "viewforum" -->{FORUM_SEO_KEY}<!-- ELSEIF SEO_KEY -->{SEO_KEY}<!-- ENDIF -->" />
<meta name="description" content="<!-- IF SCRIPT_NAME == "viewforum" -->{FORUM_SEO_DESC}<!-- ELSEIF SEO_DESC -->{SEO_DESC}<!-- ENDIF -->" />
<meta name="keywords" content="keyword 1, kewyrod 2," />
<meta name="description" content="This is a description for the index." />
Can I add new meta lines in overall_header.php
Close. You have to wrap the second instance with:
<!-- IF SCRIPT_NAME == "index" -->
to make sure its only displayed on index.Can I add new meta lines in overall_header.php
Alright.
<!-- IF SCRIPT_NAME == "index" -->
<meta name="keywords" content="keyword 1, kewyrod 2," />
<meta name="description" content="This is a description for the index." />
<! ENDIF -->
like that?
<!-- IF SCRIPT_NAME == "index" -->
<meta name="keywords" content="keyword 1, kewyrod 2," />
<meta name="description" content="This is a description for the index." />
<! ENDIF -->
like that?
Can I add new meta lines in overall_header.php
Alright now I tried to put that code on some places now, but it doesn't work.
Were to put it?
Were to put it?
Can I add new meta lines in overall_header.php
I tried this and it didn't work:
<meta name="keywords" content="<!-- IF SCRIPT_NAME == "viewforum" -->{FORUM_SEO_KEY}<!-- ELSEIF SEO_KEY -->{SEO_KEY}<!-- ENDIF -->" />
<meta name="description" content="<!-- IF SCRIPT_NAME == "viewforum" -->{FORUM_SEO_DESC}<!-- ELSEIF SEO_DESC -->{SEO_DESC}<!-- ENDIF -->" />
<!-- IF SCRIPT_NAME == "index" -->
<meta name="keywords" content="keyword 1, kewyrod 2," />
<meta name="description" content="This is a description for the index." />
<! ENDIF -->
<meta name="keywords" content="<!-- IF SCRIPT_NAME == "viewforum" -->{FORUM_SEO_KEY}<!-- ELSEIF SEO_KEY -->{SEO_KEY}<!-- ENDIF -->" />
<meta name="description" content="<!-- IF SCRIPT_NAME == "viewforum" -->{FORUM_SEO_DESC}<!-- ELSEIF SEO_DESC -->{SEO_DESC}<!-- ENDIF -->" />
<!-- IF SCRIPT_NAME == "index" -->
<meta name="keywords" content="keyword 1, kewyrod 2," />
<meta name="description" content="This is a description for the index." />
<! ENDIF -->