How do I add pages to my Atahualpa Left Sidebar?
Hello,
Is it possible to add the top pages to my left sidebar using Atahualpa If it's here already i'm sorry I cannot find it. Thanks, Lasareath |
Hey Lasareath, I was looking at doing something like that just earlier today. I found this page particularily helpful:
http://green-beast.com/blog/?p=157 You would put a slightly varied version of that html/php code (no need for the rss stuff perhaps etc) in header.php just before here: Code:
</td> Code:
<?php endif; ?> Hope that helps! |
Thanks!!! that was super easy.
now I just need to get rid of the: Categories No categories Archives |
I got rid of those titles by removing this code:
<div class="widget widget_categories"><div class="widget-title"> <h3><?php _e('Categories','atahualpa'); ?></h3> </div> <ul><?php wp_list_categories('show_count=1&title_li='); ?></ul> </div> <div class="widget widget_archive"><div class="widget-title"> <h3><?php _e('Archives','atahualpa'); ?></h3> </div> <ul><?php wp_get_archives('type=monthly'); ?></ul> </div> |
I got the code down to this and it works
<ul id="nav"> <?php if(is_home() && !is_paged()){ ?> <li class="current_page_item"> </li> <?php } else { ?> <?php } ?> <?php wp_list_pages('sort_column=menu_order&title_li='); ?> </ul> But it comes up with bullets, I wish I can get rid of the bullets and make the text left justified |
I found this and it seems to be the correct thing but i don't know how to make it work
http://faq.wordpress.net/view.php?p=35 |
the Category and Archives are part of the default widgets that WordPress adds if you don't have any widgets. The easiest way to get rid of them is to add a text widget but don't put anything in it.
did you ever think of just adding the 'Pages' widget to the sidebar instead of changing the code? If you don't like th e standard one, just do a google search for 'wordpress pages plugins' and you should find some with more controls. This way you won't have changed the code so you won't have to document what you did and have to redo it when you upgrade the theme in the future. (you did plan on documenting the changes to the code...right?) |
Quote:
Thanks, I will do a search for 'wordpress pages plugins' And Yes, I saved text files of everything I changed for the future. |
I use the flexipages widget. It's great. Then I use the My Page Order widget. It makes it very simple to use.
|
All times are GMT -6. The time now is 06:40 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.