locked
Sharepoint2013 search setting RRS feed

  • Question

  • Hi all,

    when i search something by selecting everything  it wont display Title Row (Top navigation) or not able to inherit form parent in search center of SharePoint 2013.

    Thank you


    Ganesh Swami

    • Moved by Anna Cc Tuesday, September 2, 2014 6:03 AM
    Monday, September 1, 2014 10:23 AM

Answers

  • Hi,

    According to your post, my understanding is that you want to display the top navigation bar in the search center.

    We can achieve it using JQuery, you can add the below code in the content edit web part, it works like a charm in my environment.

    <script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script> 
    
    <script type="text/javascript">
    
    if ($('.ms-searchCenter-refinement').length > 0) {
    
      // Unhide the title row
    
      $('#s4-titlerow').attr('style', 'display:block !important');
    
      // Set the Site Title
    
      $('#DeltaPlaceHolderPageTitleInTitleArea').text('Search Center');
    
      // Hide the search icon
    
      $('#searchIcon').hide();
    
      // Remove the top margin 
    
      $('.ms-searchCenter-refinement').css('margin-top', '0');
    
      // The following line is only needed for firefox
    
      //$('body').append('<style>#s4-titlerow { display: block !important; }</style>');
    
    }
    
    </script>
    

    More reference:

    http://www.eliostruyf.com/display-the-title-row-top-navigation-in-the-search-centers-of-sharepoint-2013/

    http://sharepoint.stackexchange.com/questions/25353/how-do-i-add-the-top-link-navigaton-bar-to-the-enterprise-search-center

    Thanks & Regards,

    Jason


    Jason Guo
    TechNet Community Support

    • Marked as answer by Lindali Friday, September 12, 2014 12:07 PM
    Tuesday, September 2, 2014 6:40 AM

All replies

  • Hi Ganesh Swami,

    Since your issue is related with sharepoint, I will move it to SharePoint 2013 - Search forum which is a suitable forum for this case.

    Best regards,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Tuesday, September 2, 2014 6:03 AM
  • Hi,

    According to your post, my understanding is that you want to display the top navigation bar in the search center.

    We can achieve it using JQuery, you can add the below code in the content edit web part, it works like a charm in my environment.

    <script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script> 
    
    <script type="text/javascript">
    
    if ($('.ms-searchCenter-refinement').length > 0) {
    
      // Unhide the title row
    
      $('#s4-titlerow').attr('style', 'display:block !important');
    
      // Set the Site Title
    
      $('#DeltaPlaceHolderPageTitleInTitleArea').text('Search Center');
    
      // Hide the search icon
    
      $('#searchIcon').hide();
    
      // Remove the top margin 
    
      $('.ms-searchCenter-refinement').css('margin-top', '0');
    
      // The following line is only needed for firefox
    
      //$('body').append('<style>#s4-titlerow { display: block !important; }</style>');
    
    }
    
    </script>
    

    More reference:

    http://www.eliostruyf.com/display-the-title-row-top-navigation-in-the-search-centers-of-sharepoint-2013/

    http://sharepoint.stackexchange.com/questions/25353/how-do-i-add-the-top-link-navigaton-bar-to-the-enterprise-search-center

    Thanks & Regards,

    Jason


    Jason Guo
    TechNet Community Support

    • Marked as answer by Lindali Friday, September 12, 2014 12:07 PM
    Tuesday, September 2, 2014 6:40 AM
  • Thanks, Jason

    Ganesh Swami

    Tuesday, September 2, 2014 8:01 AM