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. |
|
Posts: 1378
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
Posts: 9
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.
Posts: 9
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...
Posts: 1378
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
Posts: 9
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.
Posts: 9
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.