0

One of the Projects I am working on, i have a requirement to change the text "Home" that appears as a page title on the landing page of a sharepoint team site. I am able to hide Home from the master page but not sure how to replace that with a different text. Is this doable using CSS since I already have master page in place.

enter image description here

Please help, thanks in advance.

2
  • That is usually the name/title of the site (or a page), so the easiest way would be to change the site or page name/title from Home to Search. If that doesn't work, you could probably use some javascript to get that span and change it's innerText. Commented Jun 7, 2018 at 18:36
  • Hi Damjan, can you help me with the code though? the span ID is: DeltaPlaceHolderPageTitleInTitleArea
    – mdevm
    Commented Jun 7, 2018 at 18:40

1 Answer 1

2

One way would be to change it through the javascript. Make sure to include the jquery to the page, and this code should do it:

    <script type="text/javascript">
$(document).ready(function(){
    $("#DeltaPlaceHolderPageTitleInTitleArea").html("Search");
}); 
</script>
2
  • Damjan can you please review this question as well:sharepoint.stackexchange.com/questions/243092/… thanks in advance.
    – mdevm
    Commented Jun 7, 2018 at 19:11
  • Hi Damjan, This works but it also change the Settings text on list or library settings page to Search and I do not want that, is there a way to exclude the list or library pages from this?
    – mdevm
    Commented Jun 12, 2018 at 13:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.