Copiar link para a área de transferência
Copiado
Hi
On some of my sites when I assign a template to a page the template look and feel will render the page content, however on of my sites the assigned template won't render the look and feel which makes it very hard for my clients to edit.
see screen shot.
Any ideas?
thanks
MIcha
Copiar link para a área de transferência
Copiado
Hey there,
Will be down to how you have formed the stylesheets and referencing them.
If the style CSS is not in that main stylesheet BC picks up from the templates head then it cant find it. So if that is in an @import or you have several stylesheets in your head it wont work correctly.
Copiar link para a área de transferência
Copiado
Hi Liam
What is the main stylesheet? the 'stylesheet' folder? I have all my stylesheet files in the header and the header is a placeholder.
Cheers
Micha
Copiar link para a área de transferência
Copiado
Depends on the site setup, need to look at the source of your head to be able to tell you if it what I said or not.
Post a link to the site.
Copiar link para a área de transferência
Copiado
Copiar link para a área de transferência
Copiado
Markup looks ok to me-- don't know why BC isn't picking up the stylesheets from your template. Can you create a new template with the same markup and see if that works?
Copiar link para a área de transferência
Copiado
Because of the CSS trickster, styles spread across different stylesheets with that setup.
Copiar link para a área de transferência
Copiado
What is a CSS trickster? I have one stylesheet "bootstrap.css" the other style triggers only on smaller devices. I will create a simpler template version where the head is part of the template and not a placeholder and see how it goes.
Cheers guys.
Copiar link para a área de transferência
Copiado
CSS is your stylesheet and trickster is his name.
You have the following:
<link href="/css/bootstrap.css" rel="stylesheet" /> | |
<link href="/css/bootstrap-responsive.css" rel="stylesheet" /> | |
<link href="/css/font-awesome/css/font-awesome.min.css" rel="stylesheet" /> |
And I can see several CSS errors as well from the modifications yuo have done. A combination of these factors is causing the editor to have troubles.
Copiar link para a área de transferência
Copiado
Thanks Liam,
I will take a look. the CSS should be clean. most of my CSS is complied using SCSS and Compass so and I don't get errors.
Copiar link para a área de transferência
Copiado
Sorry Liam I don't know what CSS errors you're talking about. Anyway, I did a test and found that if I include the <head> code in the template instead of a placeholder the editor will work properly. So to conclude this issue, if you want to see your style in the editor the CSS files should be included in the template not placed as a placeholder.
Thanks.
Encontre mais inspiração, eventos e recursos na nova comunidade da Adobe
Explore agora