Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
Because of the CSS trickster, styles spread across different stylesheets with that setup.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now