1

I have created a custom master page a page layout that references a custom CSS file.

Problem:

A problem I'm running into is that the page will load the CSS only when you are in edit mode; however, when you click save, the page returns to normal display mode and the CSS goes away.

What could I do to fix this?

3
  • Do you have MDS enabled on the site? Seems really similar to issues I've seen related to MDS. social.technet.microsoft.com/Forums/office/en-US/… Commented Feb 9, 2017 at 20:21
  • MDS is disabled @Nate Commented Feb 9, 2017 at 20:24
  • It sounds like you only added your master page to application pages, and not the entire site. Commented Feb 10, 2017 at 5:36

1 Answer 1

0

Is your css in layout placed within PlaceHolderAdditionalPageHead placeholder in your Page Layout?

e.g.

<asp:ContentPlaceHolder id="PlaceHolderAdditionalPageHead" runat="server">
    <link href="/Style Library/css/????.css" rel="stylesheet">
</asp:ContentPlaceHolder>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.