<br> in the title of the image

wise_mike

Joined: 2008-10-21
Posts: 158
Posted: Thu, 2011-07-14 17:19

I have to translate the titles of some images or galleries.. when I add <br> in the [i]image title, it works well in the image page, but it shows literally as "<br>" in the browser title!

Is there a workaround this issue? or another way to make the title show in two lines as I want?

Thanks,

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Thu, 2011-07-14 18:06

Install the Purifier module
http://codex.gallery2.org/Gallery3:Modules:purifier
____________________________________________
Like Gallery? Like the support? Donate now!

 
wise_mike

Joined: 2008-10-21
Posts: 158
Posted: Thu, 2011-07-14 20:23

I have it installed, that's why the title in the page is right.. My question is about the title tag that shows at the top of the browser..

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2011-07-15 03:40

The title was not designed for multi lines. It is a title not a description.

That said you will have to create a custom theme and edit the page.html.php
find
<?= $theme->item()->title ?>
and chnage to
<?= preg_replace("'<br>'", ' ', $theme->item()->title); ?>

remember that <br /> is different that <BR> and <br>

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Fri, 2011-07-15 04:05

oops, thanks Dave!
____________________________________________
Like Gallery? Like the support? Donate now!

 
wise_mike

Joined: 2008-10-21
Posts: 158
Posted: Fri, 2011-07-15 15:42

perfect.. thanks,