Running K2 with Gallery2 - Sidebar Question

SimonTuffGuy

Joined: 2006-04-11
Posts: 9
Posted: Wed, 2008-02-13 03:06

Looking for some help here... I'm running WordPress 2.3.3 with K2 as my theme and that is styled with TrueBlue 1.5. Running Gallery2 version 2.2.4 with WPG2 plugin 3.0.2 - Theme is the wordpressembedded theme.

You can see the site at www.pimptiva.com

My problem is that when you go into the gallery, the theme for K2/TrueBlue is setup to display with the Wordpress sidebar. The gallery is embedded into a wordpress page, but the sidebar doesn't display.

I'd either like to: 1. Display the sidebar from Wordpress on the embedded gallery page or 2. Change the images that display on the K2/TrueBlue theme. I've already modified the images to go route #2, but I'm not sure how to set something up so that it displays properly...

Anyone have any suggestions to go either route? I'd appreciate it.

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Fri, 2008-02-15 02:37

SimonTuffGuy,

Unfortunately I am not really a theme designer however I believe the K2 Theme does not output the Wordpress Sidebars.. You can add the Wordpress Sidebar back in by adding the following line to the wpg2header.php file <?php get_sidebar(); ?>

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

 
SimonTuffGuy

Joined: 2006-04-11
Posts: 9
Posted: Sun, 2008-02-17 02:02

oz - Thanks for the reply. I tested out a wpg2header file with the code you provided (I read that on one of the topics I searched)... However, the sidebar was displayed on the page to the left... Then it was almost like a line break and the gallery was below it. I poked around in the CSS of K2, but it was a little more advanced than I've ever done myself.

I could probably try to ask someone over on the K2 forum, except the last time I did, it went unanswered.

 
SimonTuffGuy

Joined: 2006-04-11
Posts: 9
Posted: Sun, 2008-02-17 02:50

Actually... I found another site running site that's running K2 with Gallery and his works. He posted a question on the K2 forums asking how to make it work as well, but no reply.

I've got a PM into him and I'm waiting for a reply. :)

(His site is at http://karlsengroup.dk/) - I thought I could steal his wpg2header.php, style.css, etc. files... But can't...

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Sun, 2008-02-17 11:13

Best of luck, I am really not the best as CSS, ok I really suck @ CSS so my attempts most likely would end up with a 20px wide G2 and no sidebar :)

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

 
SimonTuffGuy

Joined: 2006-04-11
Posts: 9
Posted: Sun, 2008-02-17 16:02

Haha... :) Thanks. If I can find a solution from the other person who got it figured out, I'll be sure to post it up here incase anyone else comes here looking for it.

 
SimonTuffGuy

Joined: 2006-04-11
Posts: 9
Posted: Tue, 2008-02-26 18:32

Got an answer after searching a good bit more... It was another post from the guy I listed above, on another forum.

Basically, I'm running a custom header and a custom footer under WPG2.

In the wpg2header file, I ended it with: <div id="wpg2content">

In the wpg2footer file, I started it with: </div> <?php include (TEMPLATEPATH . '/sidebar.php'); ?>

And then in the style.css for my K2 theme, I just added:

#wpg2content {
width:538px;
float:left;
padding:3px;
margin:6px;
overflow:hidden;
display:inline;
}

I had to tweak the padding and margin to make the sidebar fit in there correctly... But I got it working and it looks just like the rest of my pages.

Thanks for the help - and hopefully I can help someone who is looking as well. :)