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

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.

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