Please help with a sidebar question
-
I am recently in the process of making a blog using the Subtle-Zen template, and trying to customize it to fit my need. Here is a link to my blog – http://www.s2sphotography.com/blog/. Basically, my blog is a photography blog, so I need it to be pretty clean from everything so I can mainly post images at 800×600 resolution. After fiddling around with the style.css, I managed to get rid of the side bar from the right side on the main page. This is what I want from the front page. However, when I click on the sample post, the side bar is still there on the right side, overlapping with the image.
So my question is, is there anyway to get the entire bar to show up horizontally (instead of vertical the way it is now) on the bottom of the post instead of the right side? I think it may be important in the future for people to try to search or see the archive and what not.
If there is a way to make a page with the side bar info and link it from the “category” tab on the top (so essentially every page is clean like front page), then that would work too. I am pretty new to coding, so it’s taking me a while to figure all this out. Any help will greatly be appreciated.
-
So my question is, is there anyway to get the entire bar to show up horizontally (instead of vertical the way it is now) on the bottom of the post instead of the right side?
A horizontal sidebar at the bottom of the page? Sounds like a footer to me. Add the code you want to the footer.php file and style it to display however you like.
Hmm… thanks for that tip Chrisber. I deleted all the coding on the sidebar page, which seemed to remove the sidebar from the other pages. I inserted the code on the footer page like you mentioned. This does make the sidebar on the bottom of the frontpage, but it still acts as a sidebar once you click on any other page. Guess I have to keep tweaking around the code to get it right.
Anyone know how I can get this to show up horizontally instead of vertical?
<div id="sidebar"> <ul> <?php /* Widgetized sidebar, if you have the plugin installed. */ if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?> <li> <?php include (TEMPLATEPATH . '/searchform.php'); ?> </li> <?php if ( is_404() || is_category() || is_day() || is_month() || is_year() || is_search() || is_paged() ) { ?> <li> <?php /* If this is a 404 page */ if (is_404()) { ?> <?php /* If this is a category archive */ } elseif (is_category()) { ?> You are currently browsing the archives for the <?php single_cat_title(''); ?> category. <?php /* If this is a yearly archive */ } elseif (is_day()) { ?> You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives for the day <?php the_time('l, F jS, Y'); ?>. <?php /* If this is a monthly archive */ } elseif (is_month()) { ?> You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives for <?php the_time('F, Y'); ?>. <?php /* If this is a yearly archive */ } elseif (is_year()) { ?> You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives for the year <?php the_time('Y'); ?>. <?php /* If this is a monthly archive */ } elseif (is_search()) { ?> You have searched the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives for <strong>'<?php the_search_query(); ?>'</strong>. If you are unable to find anything in these search results, you can try one of these links. <?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> You are currently browsing the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives. <?php } ?> </li> <?php }?> <?php wp_list_pages('title_li=<h2>Pages</h2>' ); ?> <li><h2>Archives</h2> <ul> <?php wp_get_archives('type=monthly'); ?> </ul> </li> <?php wp_list_categories('show_count=1&title_li=<h2>Categories</h2>'); ?> <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?> <?php wp_list_bookmarks(); ?> <li><h2>Meta</h2> <ul> <?php wp_register(); ?> <li><?php wp_loginout(); ?></li> <li><a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional">Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li> <li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li> <li><a href="http://ww.wp.xz.cn/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li> <?php wp_meta(); ?> </ul> </li> <?php } ?> <?php endif; ?> </ul> </div>
The topic ‘Please help with a sidebar question’ is closed to new replies.