Posts

Showing posts from November, 2011

How to disable the WordPress Admin Bar

Image
WordPress 3.1 introduces a new feature called the Admin bar. A lot of people will be wanting to disable this when WordPress 3.1 comes out.





But since some people might want to disable the admin bar for everyone, I thought I'd show you a  ways to quickly disable the WordPress admin bar




1. Login in admin page then click on All Users under user box
2. Edit all user that you want to disable then Un-Check on "When view site"

How to Show Home Link In wp_nav_menu

WordPress wp_nav_menu function is really helpful to display a custom navigation menus in your wordpress theme. The custom menu can be set in the admin area, easily, with a drag-and-drop interface
You can use the code below as the solution:

function my_page_menu_args( $args ) { $args['show_home'] = true; return $args; } add_filter( 'wp_page_menu_args', 'my_page_menu_args' ); Put the code in the theme function.php

Master Page feature is missing under Look and Feel section in Sharepoint 2010

Image
By default SharePoint Server 2010 (standard and enterprise) you need you activate SharePoint Server Publishing Infrastructure under Site collection features and SharePoint Server Publishing under Manage Site Feature Master Page feature under Look and Feel section. The Master Page link will appear when you have these 2 features activated

1. Site Actions -> Site Settings ->Site Collection Administration -> Site collection features

1. Site Actions -> Site Settings -> Site Actions  -> Manage site features

Hide First Tab in SharePoint 2010 Navigation

Image
In SharePoint 2010 when you create new site or sub-sites it will show Home in first tab. this post will show how to hide first tab.


Here is the original code of top navigation control:
<SharePoint:AspMenu   ID="TopNavigationMenuV4"   Runat="server"   EnableViewState="false"   DataSourceID="topSiteMap"   AccessKey="<%$Resources:wss,navigation_accesskey%>"   UseSimpleRendering="true"   UseSeparateCss="false"   Orientation="Horizontal"   StaticDisplayLevels="2"   MaximumDynamicDisplayLevels="1"   SkipLinkText=""   CssClass="s4-tn"/> <SharePoint:DelegateControl runat="server" ControlId="TopNavigationDataSource" Id="topNavigationDelegate">     <Template_Controls>         <asp:SiteMapDataSource           ShowStartingNode="False"        …