I've seen where Gabi has 2 sidebars on a couple of his pages and only 1 on others where he wanted to use less space for the sidebars: http://www.mamaliga.com/ He sent me some code to replace all of the code in the page.php, but that just makes all the pages have 1 sidebar I think and that's not exactly what I'm wanting to do. I really want to be able to use the 3 different "sidebar-widget-configurations" in different combinations for my pages. Like my sidebar #2 would have widgets specific for my blog page, while sidebar #1 could have rss, pages, comments, archives, etc.. and sidebar #3 could be more focused on ads. Then, Maybe I could have all 3 on my "home" page, and just #2 on the blog page, and #1 & #3 on some of the others... I was thinking this might be done with the page templates but I'm just not sure how. You have the "no sidebars" template, so couldn't there be "1 sidebar", "2 sidebar", "3 sidebar", and "wide sidebar" templates as well, while letting you choose which of the three "sidebar-widget-configurations" to assign to each position? You know what I mean? I am just not too great with the coding yet and don't know how hard or big of a deal it would be to make this work. Maybe page templates aren't even the right way to go about it. Let me know what you think, and thanks for all the great work on this theme - we all appreciate it. -James
Different sidebar configurations for different pages..
(6 posts) (6 voices)-
Posted 2 years ago #
-
I would love to have different sidebars, too.
Is there an easy way to do it?Btw: Thanks a lot for your great theme!
Posted 2 years ago # -
This would be a brilliant addition to a fantastic theme as I too have come to a point where I would like to use a different layout on certain pages, but would lik eto retain the Primepress aesthetics.
Any ideas as to how this can be accomplished ?
many thanks
FoTP
Posted 2 years ago # -
thank you guys for your interest and feedback.
While I can not say it can't be done, with the current theme structure there's no easy immediate way to do this.I'll definitely spend some time on this for a future version.
Posted 2 years ago # -
Ravi, Again, great plugin.
We also wanted different sidebars so my blog pages could have personal info in sidebar, but the other non-pages would just be business and not personal.
We don't know php, but had seen on another site how to have different sidebars so tried it. We set it up so the in admin, we were showing wide sidebar only, but then in the sidebar.php code, we added the lines to show sidebar 1 and 2 and the top of the blog main and blog single post pages.
In Firefox, we were very excited when we saw that it worked perfectly, but then in checking IE, it put 1 and 2 in the right place, but has the wide sidebar to the right instead of below it.
We read on forums about all the issues with Wordpress sidebars in IE and how to fix it but had not found anything that looked like it would work. Any ideas would be greatly appreciated!
Thanks,
PatrickHere's what we used in sidebar.php:
'<div id="sidebar">
<?php if (is_home()) : ?>
<?php include ('sidebar-one.php'); ?>
<?php else : ?>
<?php get_sidebar(); ?>
<?php endif; ?>
</div><div id="sidebar">
<?php if (is_home()) : ?>
<?php include ('sidebar-two.php'); ?>
<?php else : ?>
<?php get_sidebar(); ?>
<?php endif; ?>
</div><div id="sidebar">
<?php if (is_single()) : ?>
<?php include ('sidebar-one.php'); ?>
<?php else : ?>
<?php get_sidebar(); ?>
<?php endif; ?>
</div><div id="sidebar">
<?php if (is_single()) : ?>
<?php include ('sidebar-two.php'); ?>
<?php else : ?>
<?php get_sidebar(); ?>
<?php endif; ?>
</div>'Posted 2 years ago # -
Thanks for posting the sidebar configuration codes.
Posted 1 year ago #
Reply
You must log in to post.