Showing posts with label Content Editor. Show all posts
Showing posts with label Content Editor. Show all posts

Wednesday, July 3, 2013

Adding an Email Link in SharePoint site page

There was a requirement raised by one of my user to add Email lnk to the SharePoint site page, I followed below steps to achieve this

Add Content Editor Web Part on the page and in source editor insert following code
<a href="mailto:abc@xyz.com">Email Us</a>
or 
open a site page in SharePoint Designer, select the location where you have to put the link and then insert above code
or 
if you want users to directly open email link on a page when they click on "Email Us / Contact Us" button then assign "OnClick" event to Contact Us button / tab with above code 
<INPUT TYPE="button" VALUE="Email Us" onClick="parent.location='mailto:abc@xyz.com'">

hope this helps

Thursday, January 31, 2013

How to hide the Left navigation or Quick launch Sharepoint 2010


To hide the left navigation bar or Quick launch , you can follow the below mentioned steps.
Go to à Site Actions à Edit Page à Add a webpart à Add Content Editor Webpart
Modify shared webpartà Edit the Source Code and paste the below code in Source code .


<Style>
body #s4-leftpanel
{
display: none;
}
.s4-ca
{
margin-left: 0px;
}
</style>


Select Ok. Then from the Appearance Section Hide the webpart à Click Apply Ok. à Exit Edit mode.
Hope this helps

Friday, June 10, 2011

Unable to edit Content Editor Webpart – Error on page

Issue
While moving the Content Editor Webpart from one place to another We get the following error message “Error On page” on the Bottom left of the IE.
Or
After moving the content Editor Webpart, when we click Exit edit mode. It gives “Unexpected error has occurred”
Cause
This usually happens whenever we copy the HTML code from one Content Editor webpart to another, due to which the Webpart ID is also copied and it conflicts.
Resolution
Modify the Content Editor Web part
Open the Source Code
Remove the following Tag from the code for e.g.:- ”id=WebPartWPXX WebPartID=”XXXX-XXXX-XXXX-XXXX-XXXXXXXX“
Let me know in case of any doubts.