Persistent sidebar.php [closed]
#left { float: left; width: 40%; } It may help you but, it seriously is an HTML and formatting issue.
#left { float: left; width: 40%; } It may help you but, it seriously is an HTML and formatting issue.
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.
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
It definitely belongs to CSS forum, but any way: Open: your style.css located in wp-content/themes/twentyeleven-child/ Go to: line 1736 where it says .widget-title Remove: text-transform: uppercase;
Open up that file (mini-cart.php) and edit line 40 where it contains <?php echo $_product->get_image(); ?> Change that to <?php echo $_product->get_image( array( 150, 200 ) ); ?> 150 is the width and 200 is the height. Change it to whatever size you want. After you have done that make sure to clear your cache … Read more
The child ul comes with the class “children”, so you can use this to target your css. ul.children li { } Even without that, though, you could just use the hierarchy of lists to target.. ul#catList ul li { } would target any li within a ul, within the #catList ID.
Have a look at the Codex page for get_sidebar(). In particular, the section that mentions calling sidebars with other names and the multiple sidebar section.
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’); }
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
Do you have the following line in your custom-page.php: <?php get_sidebar(); ?> ?