Where to place external CSS link tag ?

Yang Wen asked on April 18, 2015 19:38

This must be a design deficiency in Kentico.. Just want to confirm with the experts here..

In the design view of my portal generated Master Page, I paste in the external CSS references in the textarea box within the "head" region. Live Preview of the site looks fine.. However child pages within the Pages "app" do not pick up these CSS references so they are effectively not editable within the Portal UI using this approach.

It appears in order to make the child page (while in the Pages app) see the CSS references in the master page, I have to move the CSS references into the Header tab of the Master Page's page template properties.

Why is this so? What kind of convoluted Kentico implementation is going on behind the scene to require this pattern? Thanks

Recent Answers


Brenden Kehren answered on April 20, 2015 03:29

A better way to implement it is using the CSS Stylesheet webpart on the master page. This will automatically place it in the right place for you. If you have multiple stylesheets and they HAVE to be in a specific order then you can use the Head HTML webpart on the master page and specify the link. Personally if I can download any kind of external css or js files and include them locally I do for performance and availability reasons.

2 votesVote for this answer Mark as a Correct answer

Debashis Raybiztech answered on July 22, 2015 07:21

You have to keep the style sheet in your cms desk.and give path in your master page to that css style sheet. path to store style sheet in cms desk.

GOTO CMS desk

type css style sheet in navigation menu and give the name of your style sheet.

=> Then come back to your master page give the path of your css style sheet.

=> if you have multiple style sheets please keep them in order.

1 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.