ReadWriteWeb-like sidebar scrolling

Its from scrollspy in Twitter Bootstrap. Look at RWW javascript file for inspiration on how you might apply it to your sidebar div id. As well as the bootstrap docs. Kind of hard to make it into a plugin since you don’t know what html classes or ids a give websites sidebar will be using.

How do I load my site without the side bars? This is for an app

Do you have access to the theme files? If so, try replacing <?php get_sidebar() ?>; with this: <?php if( stristr($_SERVER[‘HTTP_USER_AGENT’],’android’) === FALSE ) { get_sidebar(); } ?> Otherwise, what about access to the theme’s javascript file? var ua = navigator.userAgent.toLowerCase(); var isAndroid = ua.indexOf(“android”) > -1; if(isAndroid) { // Do something! // Perhaps target the … Read more

How to hide a Sidebar from other admins?

Here is the solution I’ve used which is css based. global $pagenow; if (in_array($pagenow, array(‘widgets.php’))) { function Only_show_to_webmaster_user_things_by_css() { global $current_user; $username = $current_user->user_login; if ($username == ‘Your_Username_Here’) { } else { ?> <style>#Sidebar_ID_Here{display:none !important;}</style> <?php } } add_action(‘admin_head’,’Only_show_to_webmaster_things_by_css’); }

Searchresult sidebar change

Your search.php may contain the following code <?php get_sidebar(); ?> If a name ($name) is specified as an argument then a specialized sidebar sidebar-{name}.php will be included. If sidebar-{name}.php does not exist, then it will fallback to loading sidebar.php. If the theme contains no sidebar.php file then the sidebar from the default theme will be … Read more