Indexhibit
Index + Exhibit

Login:

Created by
Daniel Eatock
Jeffery Vaska
And You

Remove "Main : " from title tag

 

Indexhibit version: 2.0
Thread is not resolved.

bipster
SPAIN
2 year(s) ago
Permalink Post

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
UNITED STATES
2 year(s) ago
Permalink Post

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

bipster
SPAIN
2 year(s) ago
Permalink Post

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
UNITED STATES
2 year(s) ago
Permalink Post

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
SPAIN
2 year(s) ago
Permalink Post

I'll try your suggestion. Thanks!

bipster
SPAIN
2 year(s) ago
Permalink Post

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
SPAIN
2 year(s) ago
Permalink Post

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
BRAZIL
13 month(s) ago
Permalink Post

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
GREECE
13 month(s) ago
Permalink Post

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
BRAZIL
13 month(s) ago
Permalink Post

Perfect, thank you!

Showing 1 - 10 of 10 posts in Forum » Customize » Remove "Main : " from title tag
 

This thread has been closed, thank you.