Extra </div>

michalikt
michalikt's picture

Joined: 2006-08-13
Posts: 4
Posted: Sun, 2007-11-25 14:07

I've got WPG2 plugin version 3.0.2 installed and most everything is working well. The only problem is in viewing the embedded gallery in WordPress. An extra </div> tag gets inserted which screws up my WP theme. Any idea where I should start looking to resolve this? I've tried different Gallery themes and that made no difference. The <div> & </div> tags are matched in my regular WP pages.

Ted

 
michalikt
michalikt's picture

Joined: 2006-08-13
Posts: 4
Posted: Mon, 2007-11-26 00:12

Never mind. I found the problem. When I first installed the plugin, My gallery did not display correctly using Simple Headers so I tried setting up a wpg2header.php file. This got it working except for the problems mentioned above. The problem is that unless you set up a wpg2footer.php, it uses the Simple Footer which defaults to </div>.

The solution was to delete the wpg2header.php and go to the WPG2 Output tab in WordPress admin. There I deleted the defaults for Simple CSS, Header, and Footer. These defaults were:

.g2_column {width: 738px;margin: 0px 1px 0px 12px;}

<div id="content" class="g2_column">

</div>

My theme's header already has a <div id="content> and the footer has a corresponding </div> so these defaults are not needed.

Ted

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Mon, 2007-11-26 02:03

Thanks for posting Ted, now if all Wordpress themes could be standard we could come up with a easy to use guide to make Gallery2 Output changes..

____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo