none
Edit Blog Template

    Question

  • Help!!  Hopefully someone will know how to hide items on a Blog Template page. I'd like to hide almost everything becuase users "Visitors" that will go to the site will have verrry minimal permissions. I would like them to just see the blog entries. Please if anyhone knows how to do this or can point me in the right direction... Greatly appreciated!!... I've found almost nothing. Script Editor is no use as I've used this with regular Team Site Templates. Works like a charm, but the Blog page I can't seem to hide anything with my limited knowledge. Hopefully no coding is needed. I suck at coding... :-)

    Thanks,

    AJ

    Saturday, March 11, 2017 1:09 AM

Answers

  • Hi AJay,

    Please use this demo instead:

    <script language="JavaScript">
     _spBodyOnLoadFunctionNames.push("HideBrandingsuite");
     function HideBrandingsuite()
     {
      document.getElementById('Sites_BrandBar').style.visibility = 'hidden';
      document.getElementById('O365_TopMenu').style.visibility = 'hidden';
    document.getElementById('O365_MainLink_NavMenu').style.visibility = 'hidden';
    
     }
    </script>

    Best Regards,

    Victoria


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com

    • Marked as answer by AJay691 Wednesday, March 15, 2017 2:28 AM
    Wednesday, March 15, 2017 1:17 AM
    Moderator

All replies

  • Hi AJ,

    Could you please provide a screenshot of the Blog Template page and which part you want to hide on that page for better understanding the issue?

    Best Regards,

    Victoria

    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com

    Monday, March 13, 2017 12:24 PM
    Moderator
  • Thanks for responding.  I did have a javascript that did work at some point, but no longer is working correctly.  I'd like to hide the SharePoint branding, the Sites, The Settings gear and even their name.  I don't want them to create a MySite page.  I know I can turn that off, but we have new people that will need to create their own sites.  This is mainly for Students so they won't get any ideas....  Just hide it from everyone...


    • Edited by AJay691 Monday, March 13, 2017 6:40 PM
    Monday, March 13, 2017 3:44 PM
  • This once worked, but I don't know if doing the latest update (Feb) caused it to break.

    <script language="JavaScript">
    _spBodyOnLoadFunctionNames.push("HideBrandingsuite");
    function HideBrandingsuite()
    {
     document.getElementById('DeltaSuiteLinks').style.visibility = 'hidden';
    }
     </script>

    This was put in a Script Editdor webpart.  Worked fine on another site, but now doesn't do anything.

    • Edited by AJay691 Monday, March 13, 2017 3:47 PM
    Monday, March 13, 2017 3:46 PM
  • Hi AJay,

    Are you using SharePoint 2016 or SharePoint 2013?

    If it is a SharePoint 2016 site, then you cannot use the script as there is no ID defined with 'DeltaSuiteLinks'.

    If it is a SharePoint 2016 site, please use the script below:

    <script language="JavaScript">
     _spBodyOnLoadFunctionNames.push("HideBrandingsuite");
     function HideBrandingsuite()
     {
      document.getElementById('Sites_BrandBar').style.visibility = 'hidden';
      document.getElementById('O365_TopMenu').style.visibility = 'hidden';
     }
     </script>

    Best Regards,

    Victoria


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com

    Tuesday, March 14, 2017 10:51 AM
    Moderator
  • SharePoint 2016.  Excellent!! I love it!! Worked like a Champ!!  Just one more thing... I need to get rid of the "Waffle" also.   If someone clicks there, they still have access to One Drive and Sites, which they don't need.   Can you help add to this script to also hide that?  See the attachment

    I'm far from a coder so I'm totally lost when it comes to this... But I definately appreciate the above code....

    Thanks,

    AJL

    • Edited by AJay691 Tuesday, March 14, 2017 4:38 PM New Content
    Tuesday, March 14, 2017 1:09 PM
  • Hi AJay,

    Please use this demo instead:

    <script language="JavaScript">
     _spBodyOnLoadFunctionNames.push("HideBrandingsuite");
     function HideBrandingsuite()
     {
      document.getElementById('Sites_BrandBar').style.visibility = 'hidden';
      document.getElementById('O365_TopMenu').style.visibility = 'hidden';
    document.getElementById('O365_MainLink_NavMenu').style.visibility = 'hidden';
    
     }
    </script>

    Best Regards,

    Victoria


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com

    • Marked as answer by AJay691 Wednesday, March 15, 2017 2:28 AM
    Wednesday, March 15, 2017 1:17 AM
    Moderator
  • Hello,  This works GREAT!!  Thank you, Thank you!  I'm going to mark this as the Answer, but I'm going to put 1 more up.  I need to hide the Search field, and also the "Share".  I will start another thread.  Also, I've seen how to change the SharePoint branding to something else.  But as I said, I'll start another thread.  Thanks again!!
    Wednesday, March 15, 2017 2:32 AM
  • Hi AJay,

    Please use this demo instead:

    <script language="JavaScript">
     _spBodyOnLoadFunctionNames.push("HideBrandingsuite");
     function HideBrandingsuite()
     {
      document.getElementById('Sites_BrandBar').style.visibility = 'hidden';
      document.getElementById('O365_TopMenu').style.visibility = 'hidden';
    document.getElementById('O365_MainLink_NavMenu').style.visibility = 'hidden';
    
     }
    </script>

    Best Regards,

    Victoria


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com


    Question,  This works great, but I've noticed something.  How can I get this to be the first thing that shows.  Like when you get to the page, the script doesn't run unless someone refreshes the page..  with F5.  (Man, I wish I knew code)
    Wednesday, March 15, 2017 1:32 PM
  • Hi AJay,

    You can use CSS code instead which will work more faster.

    <style>
    #Sites_BrandBar, #O365_TopMenu, #O365_MainLink_NavMenu
    {
    display:none;}
    </style>

    Best Regards,

    Victoria


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com

    Thursday, March 16, 2017 2:25 PM
    Moderator