Elxis CMS Forum
Support => Administration => Topic started by: yjw485 on August 06, 2010, 17:13:01
-
Will the Next Moderator: Add a new tag meta name = "title" content =, how to add?
-
You can fill them, by adding them on the meta tag tab of each content / category / section e.t.c.
Even if you don't fill anything Elxis CMS will fill them for you regarding each title.
-
Thanks! But you still do not understand my question, now this is the case
<Meta http-equiv = "Content-Type" content =
<title> Elxis </ title>
<Meta name = "description" content =
<Meta name = "keywords" content =
<meta name="Generator" content="Elxis-Copyright (C) 2006-2010 Elxis.org. All rights reserved." />
<meta name="robots" content="index, follow" />
I would like to add a tag inside another: <meta name = "title" content =
Will add in what position?
-
You can add stuff to the Elxis header in your template's index.php file.
-
Add a meta tag the title tag of each page to be different, elxis is mosShowHead this function to generate meta tags tags with <? Php mosShowHead ();?> Related
-
to do that you have to edit the hard code of the component content for sure, if you want different
meta name = "title" content =
for each content.
-
I'm having the same questions as for example one of my site pages display a short Title tag such as "Health" because in the menu there is an item called Health (this is a Cat item under a section).
What are the steps to change that to a longer and more relevant title tag to avoid short title tags? Is there any option in Elxis to edit the title tag and meta description for chategories?
-
You just have to edit the section / category meta tags.
If you change the seo title you must be careful for hard links & stored / indexed links.
-
The page title for category pages is formatted like this:
{Category title} - {Section title}
function: showCategory
The page title for category blog pages is formatted like this:
{Menu item name}
function: showBlogCategory
If you want to change it, then do it like this:
$mainframe->setPageTitle($menu->name); (around line 852)
To this:
$title = $menu->name;
if ($rows && isset($rows[0])) {
$title = $rows[0]->category;
if (trim($rows[0]->section) != '') {
$title .= ' - '.$rows[0]->section;
}
}
$mainframe->setPageTitle($title);
For more see: components/com_content/content.php