Remove "Main : " from title tag

bipster / 2012-10-05 08:40:22   

Hi!

Just a question. Is it possible to remove the "Main : " string from the <title> tag in the main page?

Thanks in advance

Vaska A / 2012-10-05 10:36:02   

You would need to edit that out of the template directly - certainly not difficult. ;)

bipster / 2012-10-05 12:41:24   

But, if I strip the <last:ndxz_title /&gt tag from the template, the title in the rest of the sections disappear, too. Am I wrong?

Vaska A / 2012-10-05 12:43:20   

Only the main, page, aha...

You would need to make a small custom plugin that checked it it was the main page (home = 1) and then dealt with things accordingly.

bipster / 2012-10-05 12:52:24   

I'll try your suggestion. Thanks!

bipster / 2012-10-07 15:16:22   

I tried this in my template with no success:

  1. global $rs;
  2. if ($rs['id'] == 1) {
  3.     ....
  4. }

What am I doing wrong?

bipster / 2012-10-08 13:31:58   

Ok, I managed to build a plugin

  1. function ndxz_title_plus()
  2. {
  3.   $OBJ =& get_instance();

if ($OBJ->vars->exhibit['home'] != 1) {
return ($OBJ->vars->exhibit['section_top'] == 1) ?
         strip_tags($OBJ->vars->exhibit['sec_desc']) :
         strip_tags($OBJ->vars->exhibit['title']);
}
}

forgetmeknots / 2013-10-05 14:13:53   

I used bipster's plugin, but nothing changed. Can someone help me? I've changed "main" to ".", but would like to remove the "." and the two dots ":" that precede my website name.

arsondpi / 2013-10-06 14:30:05   

In the index.php file of the theme you're currently using (for example the default folder is the default theme) find the following:

  1. <title><last:ndxz_title /> : {{obj_name}}</title>

last:ndxz_title is the exhibit name and obj_name is the Website Title you gave to your indexhibit site (via Admin/Theme tab)
Change them accordingly.

forgetmeknots / 2013-10-06 21:38:53   

Perfect, thank you!

This thread has been closed, thank you.