Content Editor, Script Editor Web Part Missing in SharePoint Online?

Problem: The content Editor Web Part in SharePoint Online is missing! Fix SharePoint Online Content Editor web part missing Issue: In Modern SharePoint Online sites (E.g., Group sites, Communication Sites), Self-serviced sites, and Root site, custom scripting is disabled by default! So, how to get a content editor web part in SharePoint…

Read more

How to Reload SharePoint Page Every 60 Seconds Automatically with JavaScript?

Requirement: I was required to reload the Intranet SharePoint site’s home page for a monitoring dashboard every five minutes. Solution: Use this JavaScript placed in a Script editor or content editor web part to refresh a SharePoint page every 60 seconds. Here is how to refresh the current page in SharePoint, step…

Read more

Content Editor Web Part Content Link Redirect – 404 Page Not Found Error

Problem: A particular SharePoint site’s Home page URL leads to 404 page not found error. While all other pages were working without any issues, On hitting the Home page URL, observed it is redirecting to some other URL that doesn’t exist! Root cause: Usually, these kinds of redirects are placed in CEWP…

Read more

Set Content Editor Web Part (CEWP) Content with PowerShell

Scenario: We have a Project site collection with 100’s of sub sites created for each project from a custom site template. The home page of each site has a content editor web part with some content in it, titled “Dashboard Links”. Years later, The business wanted to change the content in the…

Read more

Replace Content Editor Web Part (CEWP) Links with PowerShell

After a SharePoint Migration with URL change, had to find and replace the links from the SharePoint Content Editor Web Part for all SharePoint sites in a web application. Here is the PowerShell Script to find and replace links from the Content Editor Web Part. Update Content Editor content in Publishing Sites:…

Read more

SharePoint 2010 Content Editor Web Part Hidden property is Disabled

Found an interesting issue today. Wanted to place some CSS code in Content Editor Web Part (CEWP) and hide it, so that it won’t appear to end-users. I added a content editor web part, placed some CSS code, went to web part properties, oops! Hidden property under Layout is disabled (greyed out)!!…

Read more

Rotating Banner for SharePoint using jQuery

With jQuery we can do lot of user interface enhancements in SharePoint. In this article, I’m exploring one of them: Add rotating banner for SharePoint using jQuery, Let our SharePoint site display moving top banner. Lets start building rotating banner for SharePoint! jQuery Rotating Banner for SharePoint – Steps by Step: Here…

Read more

Display PDF Files in Content Editor Web Part

We can display PDF files inside content editor web part. Here is how:add a Content Editor web part to the page and place the object tag as below in HTML Source of the content editor web part. Using Object Tag to display PDF document in CEWP: <object width=”400″ height=”500″ type=”application/pdf” data=”https://sp10.Crescent.com//MCM/Documents/Pre-Reads.pdf?#zoom=75&scrollbar=1&toolbar=1&navpanes=1″ id=”pdf_content”>…

Read more

How to Integrate Syntaxhighlighter with SharePoint?

Needless to say, the format and style of our code play a vital part when writing technical blogs. Among the other code formatting plugins, I personally like SyntaxHighlighter as it is very easy to configure and use while keeping the code readable and easy to copy. In this article I’m sharing my…

Read more

How to Embed and Integrate YouTube Videos in SharePoint Content Editor Web Part?

It’s a frequently asked question to me, guys asking: “I need to add YouTube videos in my SharePoint site”. In fact, it is very simple to implement. So I’m going to walk-through on how to embed YouTube videos in SharePoint, just using the content editor web part. 1.   Go to YouTube.com and…

Read more