Tuesday, June 11, 2013

Adding Javascript to a Quick Launch or Top Link Bar

If you ever tried adding javascript to the Quick Launch or Top Link Bar you'll find it's impossible to do so using the setting page under navigation.

Here's another alternative:

1. Enter one of the following URL's into the address bar (this depends on which of the two you want to edit).  

Quick Launch: http://<site address>/_layouts/quiklnch.aspx  
Top Link Bar: http://<site address>/_layouts/topnav.aspx

2. Enter your javascript within the web address bar and the link title within the description. 



Removing the time from your SharePoint Calendar

Recently, I created a calendar but did not want the out-of-the-box time stamp (12:00) to show by each of my calendar's entries.

Here's what I found to remove this:
  1. Add a content editor webpart to your page 
  2. Enter the following code:
     <style>
.ms-acal-item {
BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; BACKGROUND: none transparent scroll repeat 0% 0%; BORDER-TOP: 0px; BORDER-RIGHT: 0px
}
.ms-acal-time {
DISPLAY: none
}
.ms-acal-sdiv {
MARGIN-LEFT: -58px
}
.ms-acal-sdiv A {
POSITION: absolute; WIDTH: 100%; LEFT: 0px
}
.ms-acal-title {
HEIGHT: 35px; PADDING-TOP: 0px
}
< /style>


Voila! The timestamp is gone.

Source: http://happysharepointing.blogspot.com/2011/10/removing-default-time-from-sharepoint.html