Persistent CSS Problem

medmac

Joined: 2006-02-09
Posts: 3
Posted: Tue, 2007-10-23 01:24

Hi guys, I was using wpg2 for a year without a single problem. After update all system (WP, Gallery2 and WPG2) something gone wrong.

The plugin is calling wpg2.css at the home page of my site. Here is what I get at main page html when wpg2 3.0.2 is activated and validated:

<style type="text/css">.g2_column {width: 738px;margin: 0px 1px 0px 12px;}</style>
<script language="javascript" type="text/javascript" src="http://www.labfoto.ufba.br/wp-content/plugins/wpg2/js/dtree.js"></script>
<link rel="stylesheet" type="text/css" href="http://www.labfoto.ufba.br/gallery2/main.php?g2_view=imageframe.CSS&amp;g2_frames=None"/>
<link rel="stylesheet" type="text/css" media="screen" href="http://www.labfoto.ufba.br/wp-content/themes/labfoto_white/wpg2.css"/>

If I use Firebug to remove the last line, the page looks ok.

Is there any way to avoid wpg2 calling it at the main page? Besides of that everything is working like a charm.

Any help will be appreciated.

WP: 2.3
WPG2: 3.0.2
Gallery2 System Version = 2.2.3 base 1.2.0.5
PHP Version = 5.2.0-8+etch7 apache2handler
Web Server = Apache/2.2.3 (Debian) PHP/5.2.0-8+etch7
Data Base = mysql 5.0.32-Debian_7etch1-log, lock.system=flock
Default Theme = carbon

AttachmentSize
wpg2header.php_.txt4.75 KB
www.labfoto.ufba_.br_.html48.49 KB
 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Tue, 2007-10-23 01:52

Easy way to fix this is to place a blank file (wpg2.css) in your wordpress theme and revalidate the WPG2 plugin. This should fix any issue you are having with the default css classes specified in the wpg2.css file..
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, WPG2 Downloads, WPG2 Documentation

 
medmac

Joined: 2006-02-09
Posts: 3
Posted: Tue, 2007-10-23 02:39

No luck.
As you suggest, I put a blank wpg2.css and revalidate the WPG2. The front page looks fine but the embebed gallery doesn't. When I restore the original wpg2.css, the problem comes back.

Did I miss something?

Thanks

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Thu, 2007-10-25 20:55

What about if you rename wpg2.css to wpg2_embedded.css and then create the blank wpg2.css. Add the following to wpg2header.php:

Quote:
<link rel="stylesheet" type="text/css" media="screen" href="http://www.labfoto.ufba.br/wp-content/themes/labfoto_white/wpg2_embedded.css"/>

and then revalidate WPG2?

Kirk
____________________________________
G2Image Documentation, G2Image Demo Page, My Family Website

 
medmac

Joined: 2006-02-09
Posts: 3
Posted: Thu, 2007-10-25 21:54

Ground control to Capt. Kirk:

- Problem solved.

Just need some easy css adjusts now...

Many many thanks.