Sidebar disappear when loading gallery2 embedded with the WPG2 plugin
mangamansan
Joined: 2008-09-09
Posts: 6 |
Posted: Tue, 2008-09-09 16:57 |
Hello, I have a problem with my sidebars and haven't been able to find documentation on this. I have WPG2 3.0.7 and wordpress 2.6.1 on http://www.mangaman.net/erik/ My problem is that the left and right sidebar disappear when I load a page from the gallery. I'm not sure it's a problem with the theme because I've tried with another theme and it was still doing the same thing. Anyone knows where I could find info on that problem? Thanks a lot |
|
Posts: 172
It's an undocumented feature
Just kidding. Look in your .../wp-content/theme/currenttheme directory. The files that display the pages are "index.php" and "single.php". WPG2 has two major modes. Native gallery and Wordpress. In native mode you're on your own for display. It just logs you in and calls gallery. In the wordpress integration mode it displays the wp or wpg2 header if it exists then displays gallery below your wordpress header.
Look for
<?php get_sidebar(); ?>
which is the function that displays your sidebar. You'll also need to be sure your WPG2 is set to look like a wordpress page to enable the output hooks. it's at:... wp-admin/admin.php?page=wpg2/wpg2functions.inc
Did you edit your gallery template to look like wp or are you already using the wpg2 output hooks?
See the codex at http://codex.gallery2.org/Integration:WPG2 It's amazing what you find when you read the documentation.
It looks like you've customized gallery to look like WP, i.e. the custom header images etc. I see lots of inline css in your output. My suggestion is to try adding the get_sidebar(); in your gallery template and see if it works. But it will bomb if you run gallery outside WPg2 . There is a wiki article on sidebars that should help.
Author:Blog|Site
Posts: 6
Hello! Thanks a lot, I was trying to figure out if it was my wordpress theme, WPG2 or the gallery2 theme that was getting rid of the sidebars. I'll try to add it directly to the gallery since i changed the theme for another one where the ergonomy was better hehe. Thanks a lot for the feedback!