PDSWSS
asked on
Why won't the attached code run when I add to the HTML source code on our Sharepoint 2010 Foundation Site?
Several months ago I added the attached code to the HTML source code in the Content Web part to hide the Recycle Bin and All Site Content in the left column of one the pages on our Sharepoint 2010 Foundation Site.
Worked fine. Now when I do this I get a message that the HTML code may have been modified and it won't run. I probably forgot a step. Any suggestions? Thanks
Worked fine. Now when I do this I get a message that the HTML code may have been modified and it won't run. I probably forgot a step. Any suggestions? Thanks
/*--Hide Quick Launch --*/
#s4-leftpanel{
display:none
}
.s4-ca{
margin-left:0px
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
The code appears to be modified message is displayed almost every time a Content Editor web part is displayed. At least that is my exprience. I don't know if it is just reformatting white space some times or what.
Sorry - I meant every time a Content Editor web part is saved/modified.
Interesting. Just tried it on my test VM, and I see what you mean. The source gets modified.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Great job and that video give you an A+. Thanks
ASKER
With the Video = A+. Thanks again
Thanks. :)
ASKER
Is this the correct process?
I choose Edit the Page
Add the Content Web Part to the Page and then choose HTML source and add the
code to the end of that file.
Then I get the code appears to be modified message. Is this a permissions issue?