1,761 articles and 13,672 comments as of Friday, November 12th, 2010

Thursday, January 14, 2010

How to Add a Title to a Web Part Page that Doesn’t Have One

Guest Author: Jim Bob Howard

How do you add a title tag to a webpart page that doesn’t have one?

Simply use Javascript (no jQuery necessary) in a Content Editor Web Part
(CEWP):

  1. Go to Site Actions -> Edit Page
  2. If Edit Page isn’t available, add the following to the URL
    ?PageView=Shared&ToolPaneView=2

  3. Click Add a Web Part
  4. Choose “Content Editor Web Part” from the All Web Parts / Miscellaneous section
  5. Click Add
  6. Click and drag the CEWP to the bottom of the page
  7. In the CEWP, click on “open the tool pane
  8. Click the Source Editor… button
  9. Paste the following code into the box:
  10. <script type="text/javascript">
        document.title = "Your Title Here";
    </script>

  11. Replace Your Title Here with your title
  12. Click the Save button
  13. Click the + next to Layout
  14. Check the box next to Hidden
  15. Click the OK button

Your page now has a title on the browser skin.

Guest Author: Jim Bob Howard

Jim Bob Howard is a web designer / web master in the healthcare industry. He has been working with SharePoint only since March 2009 and enjoys sharing what he has learned. You can email him at [email protected].

 

Please Join the Discussion

3 Responses to “How to Add a Title to a Web Part Page that Doesn’t Have One”
  1. Frank says:

    Jim Bob,
    This gets a HS! I followed the instructions and it worked.
    Thanks,
    Frank

  2. Frank,

    You’re welcome. I had trouble finding the answer to that question online, so I wanted to make sure others wouldn’t have the same trouble. Glad it helped.

    Blessings,
    Jim Bob

  3. Thank You for this solution! So easy and yet it was so hard to find! I should have looked here first. =)


Notify me of comments to this article:


Speak and you will be heard.

We check comments hourly.
If you want a pic to show with your comment, go get a gravatar!