Description font in IE7

Phoca Gallery - image gallery extension
belindab
Phoca Member
Phoca Member
Posts: 13
Joined: 19 Jan 2009, 16:06

Description font in IE7

Post by belindab »

Hi,
I have found that the description text is in a different font in IE7, than it is is Firefox. What is shown in IE7 bears no relation to anything else on the site, and I would like to change it.

Please can you advise how to do this?

See the images below - first IE7, then Firefox
phoca_ie7.jpg
phoca_ff.jpg
belindab
Phoca Member
Phoca Member
Posts: 13
Joined: 19 Jan 2009, 16:06

Re: Description font in IE7

Post by belindab »

I have now checked in Safari and it is different again. This is not affected by a template change.

This is one of the final things on my bug list before we launch the site, so I would be grateful for a clue as to how I can change this. I don't mind putting in a hack if you can tell which file I should be looking at, where I can add a style to the description.

Thanks.
belindab
Phoca Member
Phoca Member
Posts: 13
Joined: 19 Jan 2009, 16:06

Work Around: Description font in IE7

Post by belindab »

It seems that when the new window frame is opened, the font inherits the default value of the browser. Not good.

As there was no class on the div for the description, and no way to choose the font in Phoca Gallery parameters, I decided to add a class to the div and put my font choice into the css file. (This then is a very localised fix, but it works for me)

In com_phocagallery/views/detail/tmpl/default.php replace (line 36)

Code: Select all

<div style="font-size:<?php echo $this->tmpl['fontsizedesc']; ?>px;height:<?php echo $this->tmpl['descriptiondetailheight']; ?>px;padding:0 20px 0 20px;color:<?php echo $this->tmpl['fontcolordesc']; ?>"><?php echo $titleDesc . $this->file->description ?></div>
with

Code: Select all

<div class="std-description-msg" style="font-size:<?php echo $this->tmpl['fontsizedesc']; ?>px;height:<?php echo $this->tmpl['descriptiondetailheight']; ?>px;padding:0 20px 0 20px;color:<?php echo $this->tmpl['fontcolordesc']; ?>"><?php echo $titleDesc . $this->file->description ?></div>
and in phocagallery.css, add

Code: Select all

#std-description-msg { 
	font-family:"Trebuchet MS", sans-serif; /* or whatever your choice of fonts is */
}
It would be neat if you could choose the font style when setting up the other parameters like font-size and color, so that's on my wish list for the future please.

I came across another problem with regard to setting parameters, I'll put that in a different post.
Post Reply