I have created the document type "Blog" and created other document types under "Blog" like "Single Post" and "Standard" then created template etc.
On "Content", i have created the node for Blog and "Single Post" , "Standard" sub menus and published it. On my master page (.cshtml), i have replaced static html ancher <a> tag url with the Published url of content like (blog/single-post).
After that my master page is running fine. Also if i go to to the "Blog" and clicked on "Single Post" , it's opening up that "Single Post" page as well with all static content.
Now the problem starts, all the "css" stuff not working on that page.
On my master page, i have called @RenderBody () to render the content of child pages. Now in my sub pages like "SinglePost.cshtml" i have called master template like below and put all static html there.
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
@{
Layout = "Master.cshtml";
}
This code is calling the master page (design) etc but "css" stuff is not working. See below image
css stylesheet not working on published content
Hi
As per my yesterday blog (http://our.umbraco.org/forum/umbraco-7/using-umbraco-7/56402-how-to-work-with-existing-websites-html,-css,-js-in-Umbraco-) , now i am able to browse the sub menus from my master page.
I have created the document type "Blog" and created other document types under "Blog" like "Single Post" and "Standard" then created template etc.
On "Content", i have created the node for Blog and "Single Post" , "Standard" sub menus and published it. On my master page (.cshtml), i have replaced static html ancher <a> tag url with the Published url of content like (blog/single-post).
After that my master page is running fine. Also if i go to to the "Blog" and clicked on "Single Post" , it's opening up that "Single Post" page as well with all static content.
Now the problem starts, all the "css" stuff not working on that page.
On my master page, i have called @RenderBody () to render the content of child pages. Now in my sub pages like "SinglePost.cshtml" i have called master template like below and put all static html there.
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
@{
Layout = "Master.cshtml";
}
This code is calling the master page (design) etc but "css" stuff is not working. See below image
Can you please help me here ?
Thanks,
Rohan Dave
Hi Rohan,
Can you post the link element that you are using to call your css file.
Thanks,
Owen
is working on a reply...