none
Hide Rename Column RRS feed

  • Question

  • Hi

    I am new to SP so please bear with me.

    I want to gide the Rename Column option when editing a list to stop users doing this.

    I have seen an answer on the forum which suggests that I enter the code below in the Content Editor - and I did this (perhaps not correctly) and all I got was the code appearing above the list.

    Please advise - and remember I am new to this so please do not bamboozle me.

    many thanks

    Peter

    <style type="text/css">

            li[iconalttext="Rename Column"] {

                display: none !important;

            }

        </style>

    Thursday, March 2, 2017 11:17 AM

Answers

  • Customizing a SharePoint 2013 Web Page

    Custom styling is even easier in SharePoint 2013. Edit your web page and add the Script Editor web part to any zone on the page. The only configuration needed is to change the title of the web part.

    Click on the EDIT SNIPPET link in the web part body and add your CSS style rules nested inside the appropriate <style> tags.

    Carmen 11.19.143.PNG

    Click on Insert and your changes should take immediate effect. You can now save and publish your web page. The Script Editor web part is automatically hidden when the page is not in Edit Mode.

    You can also look into the following video tutorial:

    https://www.youtube.com/watch?v=lO72tXXTIj8


    Avijit Sur

    • Marked as answer by py1 Friday, March 3, 2017 8:37 AM
    Thursday, March 2, 2017 12:05 PM
  • Hi,

    Please follow the steps below:

    1. Open your list view page.

    2. Go to Site Settings-> Edit page.

    3. Click "Add a Web Part", select "Media and Content" -> "Script Editor" and click "Add".

    4. Click "EDIT SNIPPET" in Script Editor, and embed code below, and then click "Insert"

    <style>
    ul.ms-core-menu-list > li[text='Rename Column']{
    	display:none !important;
    }
    </style>
    

    5. In Page tag of the Ribbon, click "Stop Editing".

    Best Regards,

    Dennis


    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 py1 Friday, March 3, 2017 8:37 AM
    Friday, March 3, 2017 1:58 AM
    Moderator
  • Hi Peter,

    This is CSS. The following article for your reference:

    CSS Attribute Selectors

    https://www.w3schools.com/css/css_attribute_selectors.asp

    Best Regards,

    Dennis


    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 py1 Tuesday, March 7, 2017 9:11 AM
    Tuesday, March 7, 2017 9:08 AM
    Moderator

All replies

  • Customizing a SharePoint 2013 Web Page

    Custom styling is even easier in SharePoint 2013. Edit your web page and add the Script Editor web part to any zone on the page. The only configuration needed is to change the title of the web part.

    Click on the EDIT SNIPPET link in the web part body and add your CSS style rules nested inside the appropriate <style> tags.

    Carmen 11.19.143.PNG

    Click on Insert and your changes should take immediate effect. You can now save and publish your web page. The Script Editor web part is automatically hidden when the page is not in Edit Mode.

    You can also look into the following video tutorial:

    https://www.youtube.com/watch?v=lO72tXXTIj8


    Avijit Sur

    • Marked as answer by py1 Friday, March 3, 2017 8:37 AM
    Thursday, March 2, 2017 12:05 PM
  • Hi,

    Please follow the steps below:

    1. Open your list view page.

    2. Go to Site Settings-> Edit page.

    3. Click "Add a Web Part", select "Media and Content" -> "Script Editor" and click "Add".

    4. Click "EDIT SNIPPET" in Script Editor, and embed code below, and then click "Insert"

    <style>
    ul.ms-core-menu-list > li[text='Rename Column']{
    	display:none !important;
    }
    </style>
    

    5. In Page tag of the Ribbon, click "Stop Editing".

    Best Regards,

    Dennis


    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 py1 Friday, March 3, 2017 8:37 AM
    Friday, March 3, 2017 1:58 AM
    Moderator
  • Thanks Avijit - very useful tutorial.

    If you are aware of any others please let me know.

    many thanks

    Friday, March 3, 2017 8:38 AM
  • perfect instructions Dennis - many thanks!
    Friday, March 3, 2017 8:51 AM
  • Hi Dennis

    Thank you - this was very helpful and worked perfectly.

    As a general question, what 'language' is this - I don't recognize it - can you let me know where I can find out more about the structure and syntax?

    thanks in advance.

    Peter

    Tuesday, March 7, 2017 9:03 AM
  • Hi Peter,

    This is CSS. The following article for your reference:

    CSS Attribute Selectors

    https://www.w3schools.com/css/css_attribute_selectors.asp

    Best Regards,

    Dennis


    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 py1 Tuesday, March 7, 2017 9:11 AM
    Tuesday, March 7, 2017 9:08 AM
    Moderator
  • thank you for the prompt response.
    Tuesday, March 7, 2017 9:11 AM