WordPress.org

Ready to get started?Download WordPress

Forums

Please help me widgetize my theme (pretty please?) (1 post)

  1. mbmorton
    Member
    Posted 6 years ago #

    Hi everyone,

    I have read the automatic tutorials but I'm afraid I just don't have the knowledge to make it work. Hopefully one of you coding gurus can help.

    Can you please tell me how I need to change this code? Once that's covered we can then cover adding a function.php file if necessary.

    Thanks in advance everyone!

    Here is my current, un-widgetized, 2 sidebar code:

    </div>
    			<div id="sidebar_left"> <!-- begin sidebar_left -->
    
    												<div id="sidebar_left_content"> <!-- begin sidebar_left_content -->
    
    <ul>
    <li>
    																	<?php wp_list_pages('title_li=<h2>Pages</h2>' ); ?>
    																</li>
    <li><h2><?php _e('Sections'); ?></h2>
    <ul>
    																		<?php wp_list_cats('children=1&hierarchical=1&hide_empty=1'); ?>
    																	</ul>
    </li>
    																<?php get_links_list(); ?>
    
    </ul>
    												</div> <!-- End sidebar_left_content -->
    
    						<div id="sidebar_right"> <!-- begin sidebar_right -->
    
    								<div id="sidebar_right_content"><!-- begin sidebar_right_content -->		
    
    <ul>
    <li><h2>Recent Posts</h2>
    <ul>
    												<?php get_archives('postbypost','30','html'); ?>
    											</ul>
    </li>
    <li><h2>Archives</h2>
    <ul>
    												<?php wp_get_archives('type=monthly'); ?>
    											</ul>
    </li>
    <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 XHTML</a></li>
    <li><a href="http://gmpg.org/xfn/">XFN</a></li>
    <li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li>
    												<?php wp_meta(); ?>
    											</ul>
    </li>
    </ul>
    								</div><!-- End sidebar_right_content -->
    
    						</div><!-- End sidebar_right -->
    
    			</div>  <!-- End sidebar_left -->
    
    	<div class="clear"></div>
    
    </div><!-- End level1 -->
    </div><!-- End level0 -->

Topic Closed

This topic has been closed to new replies.

About this Topic