• Resolved taji34

    (@taji34)


    I’ve been trying to get rid of the recent post/comments sections in the side bar of the Twenty-Ten theme. I have also been trying to re-arrange the meta, archives, and categories sections. Also I want to add a tag cloud. Sadly I can’t seem to do these tasks. The side bar ignores my changes unless they are drastically different from what I want. The PHP for the area I want to change reads:

    <?php
    	/* When we call the dynamic_sidebar() function, it'll spit out
    	 * the widgets for that widget area. If it instead returns false,
    	 * then the sidebar simply doesn't exist, so we'll hard-code in
    	 * some default sidebar stuff just in case.
    	 */
    	if ( ! dynamic_sidebar( 'primary-widget-area' ) ) : ?>
    			<div id="search" class="widget-container widget_search">
    				<?php get_search_form(); ?>
    			</div>
    			<div id="meta" class="widget-container">
    				<h3 class="widget-title"><?php _e( 'Meta', 'twentyten' ); ?></h3>
    				<ul>
    					<?php wp_register(); ?>
    					<li><?php wp_loginout(); ?></li>
    					<?php wp_meta(); ?>
    				</ul>
    			</div>
    			<div id="archives" class="widget-container">
    				<h3 class="widget-title"><?php _e( 'Archives', 'twentyten' ); ?></h3>
    				<ul>
    					<?php wp_get_archives( 'type=monthly' ); ?>
    				</ul>
    			</div>
    
    		<?php endif; // end primary widget area ?>

    There seems to only be the PHP for the meta, archives, and search bar which I also found strange, does Twenty Ten store the coding for the other parts somewhere else?
    Sadly I can’t link to it because it’s hosted locally on my computer. I can post screen shots though if you need them.

Viewing 4 replies - 1 through 4 (of 4 total)
  • what is in your ‘admin’ ‘appearance’ ‘widgets’ area in the primary and secondary widget area?

    ‘normally’ changes in the sidebar are done by dragging the widgets around.

    Thread Starter taji34

    (@taji34)

    Oh! My old theme allowed you to do it by coding. Thanks for telling me that feature. It works. What if i want to add normal text in between the widgets?

    use a textwidget and don’t add a title into it.

    Thread Starter taji34

    (@taji34)

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Twenty-Ten Sidebar’ is closed to new replies.