WordPress.org

Ready to get started?Download WordPress

Forums

Widgetizing my theme! PLZ HELP (2 posts)

  1. jruh1e
    Member
    Posted 4 years ago #

    I already read the guide, however this is very confusing to me. I do not understand html that well, but i em taking classes right now so hopefulyl soon I will. This is my sidebar make up. Can sombeoy plz help!

    <div id="navigation">
          <!-- Start of Navigation -->
    
          <div class="nav_title"><img src="<?php bloginfo('url'); ?>/wp-content/themes/drunkloser/images/last-posts.jpg" alt="Last Posts" /></div>
    
    <ul>
           <?php
            $posts = get_posts('numberposts=5');
            foreach($posts as $post) :
            ?>
    
    <li><a>"><?php the_title(); ?></a></li>
           <?php endforeach; ?>
    	    </ul>
        <div class="nav_title"><img src="<?php bloginfo('url'); ?>/wp-content/themes/drunkloser/images/archives.jpg" alt="Archive" /></div>
    
    <ul>
           <?php wp_get_archives('type=monthly&show_post_count=0'); ?>
          </ul>
        <div class="nav_title"><img src="<?php bloginfo('url'); ?>/wp-content/themes/drunkloser/images/links.jpg" alt="Links" /></div>
    
    <ul>
          <?php wp_get_links(1); ?>
         </ul>
    <table valign=top align=middle><tr><td><a>
    "><IMG SRC="http://jerseyshor3.com/images/jerseysurvey.gif" BORDER=0 ALT=""></a></td></tr></table>
    
    <!-- End of Navigation -->
        </div>
  2. flexnds
    Member
    Posted 4 years ago #

    I do not see the dynamic code in your side bar. Drop the code below into your sidebar.php file where you want the widget to show up. paste this

    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Page Sidebar') ) : ?>
        <?php endif; ?>

    after one of these.

    </ul>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.