How can I hard code my sidebar?

You can… 1. Enter your sidebar.php file and remove everything.. (better to just remove the code that calls the widigtized sidebar see examples) example 1 (it might look like this): <?php if ( function_exists(‘dynamic_sidebar’) && dynamic_sidebar(‘pages’) ) : else : ?><?php endif; ?> example 2 (it might also look like this): <?php wp_nav_menu( array( ‘theme_location’ … Read more

what is the best way to add things to a side bar

As you seem to understand from your tags, the user (who would need to have admin-level privileges) can add things to a sidebar via Widgets in Appearance > Widgets. For text and images, the default would be to drag the Text widget into the sidebar, then edit to add the text/image reference. To make this … Read more

Different sidebars not changing

Your main problem is that the is_page() conditional will not return true if it is included inside or after the loop. Your other issue which is not necessarily related to the issue at hand is the way you are including your sidebars. WordPress comes with a handy little function called get_sidebar(). If you have more … Read more

Add a specific css to a widget

If you register your sidebar this way, your all dynamic widgets gets a unique class automatically e.g. – class=”widget-container widget_archive” register_sidebar( array( ‘name’ => __( ‘Primary Widget Area’, ‘twentyten’ ), ‘id’ => ‘primary-widget-area’, ‘description’ => __( ‘The primary widget area’, ‘twentyten’ ), ‘before_widget’ => ‘<li id=”%1$s” class=”widget-container %2$s”>’, ‘after_widget’ => ‘</li>’, ‘before_title’ => ‘<h3 class=”widget-title”>’, … Read more

Submenu in sidebar custom page template

If you are trying to code this yourself, all the info you need is in the WordPress Codex – http://codex.wordpress.org/Template_Tags/wp_list_pages#List_Sub-Pages Alternatively you could use a widget like the BE Subpages Widget

Recent Comments from Specific Category Widget

You could get your answer from Kovshenin blog Replace whole if ( $comments ) with this if ( $comments ) { foreach ( (array) $comments as $comment) { $comm_post_id = $comment->comment_post_ID; if ( $category_name ) { if (!in_category( “{$category_name}”, $comm_post_id )) { continue; } } $output .= ‘<li class=”recentcomments”>’ . /* translators: comments widget: 1: … Read more

finding sidebar content in wordpress

The content for a dynamic sidebar is whatever widgets are added to that sidebar from the backend. Look at wp-admin->Appearance->Widgets. The actual code for those widgets could come from WordPress itself, a plugin, or your theme. But… The content that i am interested in goes inbetween the < div class=”visual”> and the < div class=”visual-holder”> … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)