Hide page title in sharepoint 2013 or SharePoint online using jQuery or css

sharepoint 2013 hide page title using jquery

Here we will discuss:
– How page title appear in SharePoint online page?
– How to hide page title in SharePoint 2013 or SharePoint online using css?
– How to hide page title in SharePoint 2013 or SharePoint online using jQuery?

How page title appear in SharePoint online page?

The page title appear like below in a SharePoint web part page.

sharepoint 2013 hide page title using jquery
sharepoint 2013 hide page title using jquery

But sometimes we may not need the title in the page. Easily by using css and jQuery we can hide the page title.

How to hide page title in SharePoint 2013 or SharePoint online using css?

We can hide the page title using css in SharePoint 2013 or SharePoint online sites. Edit the web part page and add a script editor web part.




In the script editor web part, add the below css code and save the page.

<style type=”text/css”>
#pageTitle
{
display:none;
}
</style>

Once you save the page, the page title will not be visible like below.

sharepoint 2013 page hide title css
sharepoint 2013 page hide title css

How to hide page title in SharePoint 2013 or SharePoint online using JavaScript or jQuery?

Similarly we can also hide the page title using jQuery. You can put the below code inside a script editor web part.

Method-1:
<script language=”javascript”>

_spBodyOnLoadFunctionNames.push(“HidePageTitle”);

function HidePageTitle()
{

document.getElementById(‘pageTitle’).style.visibility = ‘hidden’;

}

</script>

Method-2:
<script src=”https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js”></script>

<script>
$(document).ready(function () {
jQuery(‘#pageTitle’).remove();
});
</script>

Method-3:
<script src=”https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js”></script>

<script>
$(document).ready(function () {
$(‘#pageTitle’).hide();
});
</script>

Hope this code will be helpful to hide page title in SharePoint 2013 or SharePoint online.


About Bhawana Rathore

Hello Everyone!! I am Bhawana having about 8+ years of SharePoint experience as well as in .Net technologies . I have worked in all the versions of SharePoint from wss to Office 365. I have good exposure in Customization and Migration using Nintex, Metalogix tools . Now exploring more in SharePoint 2016 :) Hope here I can contribute and share my knowledge to the fullest. As I believe "There is no wealth like knowledge, and no poverty like ignorance"

View all posts by Bhawana Rathore →

Leave a Reply

Your email address will not be published. Required fields are marked *