Category title tag

mikez006

Member
#1 ) Currently my title tags on category pages are this.

[Website name] - Rankings - [category name]
instead I want to change it to:
[category name] - [category description]

#2) On the homepage the title is
[Website name] - Rankings - All Sites
instead I want to change it to:
[Website name]

How can I do this?

Also when I edit a phrase in "Manage Language", in this case "All Sites" or "Rankings" the titles never change on the site? Is this info cached? How do I get it to update?
 
Last edited:

Basti

Administrator
Staff member
This seems to work, had to take a different approach than usually since you want to get rid of the main title on one page, but seems to work out nicely

1) from wrapper.html title tag delete everything other that {$header}
2) upload attached plugin

I tried it out and it seems everywhere else the main title gets nicely reattached with this. If it seems wrong anywhere let me know
 

Attachments

mikez006

Member
Spoke too soon.

The category titles are not displaying the correct category names.

It's in this format
[category name] - [category description]

However the [category name] is not correct. About 1/2 of the categories are using "World of Warcraft" the other half are using "League of Legends"
 

top50servers

Active Member
Not really helping but, putting the category description in the title isn't a great idea for SEO. The title should be short and to the point.
 

cajkan

Active Member
Code:
<title>{$list_name} - {$meta_description} - {$meta_keywords}{</title>
Top50Servers is right, even if your title contains lots of words only first 65-70 will be displayed, other text is truncated.
 

Basti

Administrator
Staff member
Works on every single category i tested on. So it must be something on your end. Looks like you have some other plugin which interfere with this one.
Disable all one by one and see if the problems persists
 

mikez006

Member
My descriptions are very short, 5-8 words, so using it in the title works for me.

I tried disabling all plugins and that didn't fix it. Its not the theme either, I made the same edit to the default skin and the same thing happens.

This is what I have for the title tag in the wrapper.html file
Code:
<title>{$header}</title>
Can you confirm the file you attached is the correct one? I saw in another thread about titles an attached file that had the same name, but did something different. Maybe you attached the wrong one.
 

mikez006

Member
Actually it's not working on your site either.

Cabal Online category shows "Luna Online" in the title tag. None of your categories are displaying the correct game.
 

Basti

Administrator
Staff member
Yea several version of this plugin are flying around on the forum, as everyone want different and sometimes complicated things -.-

This is very odd, could you pls try the following
in the plugin, the file main_skin.php

the line
Code:
    $TMPL['header'] = "{$TMPL['category']} - {$TMPL['cat_desc']}";
Can you pls change the {$TMPL['category']} to {$TMPL['cat_exist']}
 

Mark

Administrator
Staff member
It would be great if someone could compile all the info/plugins about this and put together a tutorial on editing title tag structure.

I will add it to my list, but probably wont get to it for some time.
 

Basti

Administrator
Staff member
I might can do it on the weekend. This plugin is as of now the easiest method and holds the ability to edit different structures amongst all source files without using the hook in each and every file.

Honestly i think we should include this into the core. And keep just {$header} in wrapper.html
Makes it a bit easier for users to update. But time will show
 

cajkan

Active Member
Yes, i agree with Basti.
Lots of people use different structure of the category title, so allowing people to customize that would be +1 for VL.
 
Top