Does anyone attach stylesheets to pages using the field in the Advanced > Appearance tab of page settings?
I've never been able to get it to work and would appreciate any guidance, if you do this. We're on DNN 9.3. Thank you.
John
No, if I want to divert from the standard, I allocate a different layout to the page. Otherwise it gets a bit messy in my opinion. The next day you already forgot why the layout is no what you expect...
Having said that: it is quite easy to use. The trick is that the css file needs to be in the same site/portal. So, if the default is https://www.yoursite.com/...ourskin/global-4.css you fill in the text field https://www.yoursite.com/...ourskin/diverted.css for instance. So, just the url. No import or something.
I haven't used this setting myself, but if I remember correctly, the CSS file path you put into that field needs to be relative to the root folder where the theme files live.
So, an example of <code>MyStyles.css</code> would probably need to be in the folder below, where <code>THEME-NAME</code> is the name of your actual theme (and folder).
<code>/Portals/_default/THEME-NAME/MyStyles.css</code>
... or (if installed to a specific portal, where <code>###</code> is a valid portal ID) ...
<code>/Portals/###/THEME-NAME/MyStyles.css</code>
You can use this CSS style if you want to place a special CSS file for a specific page. You can upload the file under /Portals/0/home.css Mentioned only home.css in page stylesheet section under the Advanced > Appearance tab of page settings
These Forums are for the discussion of the open source CMS DNN platform and ecosystem.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.