When I edit the space-specific style sheet (Edit Space > Look And Feel > Stylesheet) and save my changes, the new styles are applied. However, this causes the global style sheet (Admin > Look And Feel > Stylesheet) to no longer be applied.
Is this a bug? Is there any way around it?
Hello Matt,
You are complately correct. I duplicated this behavior in my test instance and filed the following bug.
https://jira.atlassian.com/browse/CONF-27929
As always please visit this issue and vote on it to add your voice to the conversation. I am attaching this post to further increase its visibility.
Thanks for filing the bug. For a workaround, I created a separate stylesheet and referenced it in the head section of each space's Main Layout decorator.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks a lot!
Now can i really start my css job
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I typically put the CSS files in a directory under /confluence/confluence/includes/css. This is where Atlassian stores their stylesheets by default.
When importing, the location is relative to the /confluence/confluence directory (it's the directory that contains WEB-INF). So my stylesheet tag looks like this:
<link rel="stylesheet" href="/includes/css/pl.css" type="text/css">
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Matt thank you for this usefull workaround!
@all: To find out if I got "head section of each space's" correctly I put some
<... border-color: ...>
into the code. It works! Now with next step have I – a confluence-beginner – a problem with the (relative) path of my_wonderfull_space.css: what should I wrote into the href=" ... ?
And directly the next one: Need I (using ftp) a special upload-directory for all the spaces.css or what is the easiest upload way?
Thanks in advance
your Greenhorn
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I typically put the CSS files in a directory under /confluence/confluence/includes/css. This is where Atlassian stores their stylesheets by default.
When importing, the location is relative to the /confluence/confluence directory (it's the directory that contains WEB-INF). So my stylesheet tag looks like this:
<link rel="stylesheet" href="/includes/css/pl.css" type="text/css">
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
is it the whole global stylesheet that is ignored? Or are you hitting CSS naming oddness? Since the space sheet is applied later, it will over-write the global one where the CSS references overlap.
Or is it more than that?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.