0

Can't find anything specific on this on Google, but I am looking to find a way to change the default white background color of the main content area in an individual SharePoint 2007 wiki page. I have to be able to do this using only the web browser functionality. I do not have access to SharePoint Designer nor the ability to access any of the actual HTML/ASPX files on the SharePoint server.

I thought jQuery could do the trick via this snippet:

<script src="path/to/jquery-x.y.z.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
    $("#MSO_ContentTable").css("background-color","black");
});
</script>

But because SP2007 only allows you to add a CEWP at the bottom of an individual wiki page, my guess is the javascript doesn't load in time to modify the CSS property and flip the page's color. The white is just way too harsh on the eyes.

Can this be done with the limited editing powers that I have?

2
  • Q: did you loaded the jQuery library before trying that function? without it, it won't really work! Commented Jul 7, 2012 at 1:37
  • Yes, I just didn't include it in the example I gave. It is loaded in a <script> tag just prior to the line of code above.
    – Kumba
    Commented Jul 7, 2012 at 1:45

1 Answer 1

0

You can try adding the following CSS:

.ms-rte-layoutszone-inner { background-color: #000000; }

or jquery with the selector using the aforementioned div.

1
  • No idea if this actually solves the problem, as I determined that I didn't need to modify the background after all. I'll give points for effort, though.
    – Kumba
    Commented Jul 16, 2012 at 4:03

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.