Add the title of a widget as an ID – for anchor links

Yes you can add an around the title of the widget, you do this in the register_sidebar code which you would put in your functions.php add_action( ‘widgets_init’, ‘theme_register_sidebars’ ); function theme_register_sidebars() { register_sidebar( array( ‘id’ => ‘mysidebar-sidebar’, ‘name’ => __( ‘My Sidebar’, ‘themename’ ), ‘description’ => __( ‘Widgets for my sidebar’, ‘themename’ ), ‘before_widget’ => … Read more

Unique widget id in sidebar

No offense, but your code is a COMPLETE mess, so I’m just going to give you clean code and then tell you how to target it. register_sidebar( array( ‘name’ => ‘Post Sidebar’, ‘before_widget’ => ‘<div id=”%1$s” class=”widget widget-%2$s”>’, ‘after_widget’ => ‘</div>’, ‘before_title’ => ‘<div class=”titlediv”>’, ‘after_title’ => ‘</div>’, ) ); Then to target the title … Read more

Move wordpress sidebar on homepage up to new position

The best way is to move <div id=”side”> outside of <div id=”content”>, so that you can properly position it next to the slider (<div id=”lof-container”>). Alternatively, you could do it with #maincontent { overflow: visible; } #side { margin-top: -300px; } though this is pretty hackish.

Showing sidebar-2 on custom template page

you can put this code in your functions add_action( ‘init’, ‘register_my_menus’ ); function register_my_menus() { register_nav_menus( array( ‘menu-1’ => __( ‘Head’ ) ) ); } and this code, in the place you want your second menu <?php wp_nav_menu( array( ‘theme_location’ => ‘menu-1’ ) ); ?> and than, you can control your new menu, through the … Read more