2

I checked out the master page in SharePoint Designer 2010. Then I added inline CSS in the portion of the document. I checked it back in and published it. Then I went to the Master Page library in the browser and approved the master page. Even after approving the master page, it appears that only site administrators can see the changes.

I also tried checking out the file, publishing it, and approving it in the system administrator account and I am still having the same problem.

Am I missing something? Is there a workaround if I need to update the CSS?

As a sidenote, I have also tried publishing the changes in a custom CSS stylesheet, with the same results.

If it helps, I am using SharePoint Server 2010 on Windows 2008 Enterprise.

Master page has been published and approved, yet users do not see the change.

(Full-sized screenshot at http://i.stack.imgur.com/3fp8z.png)

  • That should be sufficient, check in, publish, approve. That is set as the master page for the site right? Is it possibly a caching issue? Can a user Shift refresh the site? – Eric Alexander Feb 24 '15 at 19:48
  • Thanks for your response! It's set as the master page for the site. I've had users refresh and that doesn't help. If it's a caching issue, wouldn't that mean I wouldn't see the changes either? – Lisa Feb 24 '15 at 20:33
  • Is your CSS using any of resources that needs to be approved?Eg. Images from Style library? – 404 Feb 24 '15 at 22:17
  • No. It's just declaring something as position: absolute and changing the link colors of the menu. – Lisa Feb 24 '15 at 22:23
  • The CSS I am adding affects the global navigation. I needed to declare something position: absolute and I also changed some link colors in the global nav. There is nothing wrong with my CSS because everything looks fine for site admins. Do I need to do something different for CSS global nav changes to appear for normal users? – Lisa Feb 25 '15 at 9:52
2

If you are experiencing an issue where you see the changes, but other users do not, try the following steps:

  • Confirm that the style sheet and/or master page is checked in AND that a major version is published
  • If required, you may need to confirm that the published version is ALSO approved
  • Confirm that the correct master page is being loaded for users
  • Have the user delete their temporary files and/or make sure they are not loading a cached version of the page (from before you made the change)
  • Using a test user who is NOT able to see the changes, press F12 and use the element tool to see whether or not the style is being loaded for a particular element

Somewhere along these steps, you should see the issue fixed or at least an idea of where things are breaking down for the user.

| improve this answer | |
1

To everyone who responded: Thanks for your response!

Upon my request, one of the users sent me the source code. My styles were being loaded, so my changes to the master page (and probably my earlier changes to the custom stylesheet) were there.

It appears that the problem is in how I was targeting in CSS. For some background, I was attempting to add some CSS styles to the top navigation. The top navigation had this ID: #zz16_TopNavigationMenuV4. I was trying to add CSS by targeting that ID. The whole menu also has a CSS class of "s4-tn." When I targeted this class instead of the ID, then users (people who aren't admins) were able to see my changes.

If your global navigation only has an ID and not a class, open your master page in SharePoint Designer. Look for the code that begins with SharePoint:ASPMenu and add CssClass="insert-css-class-name" (Or so I assume this is how you do it - I do not actually know ASP)

So in summary: If you want to add CSS classes to your the global navigation, you need to target the class of the menu INSTEAD OF the ID.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.