Saturday, June 14, 2014

Including inline designs in SharePoint 2013 web page layout

This is another tip which will help you in marketing the SharePoint 2013 websites. In SharePoint 2013 when we make a web page structure from style administrator component then in SharePoint Developer we notice one web-page coding computer file and one aspx web page got designed for web page structure. This is the execution in SharePoint 2013 for expert WebPages and web page templates. The personalization we have to do it in HTML web page. SharePoint structure will turn from HTML to ASPX instantly.

For example, if we like to hide the left navigation from the current page layout pages then we will add simple below style to PlaceHolderAdditionalPageHead placeholder.

Once you save the html computer file then you observe that the design is not used to web page. I have used simple styles to the site and still they are not used to any element on the site. After examined the ASPX transformed computer file in Designer I found that the Style is transformed as

Which means browsers will ignore executing these CDATA styles. So, these styles will not be applied. After long research and reading many articles found the helpful informationfrom MSDN article. I see there are new implementations in SharePoint 2013 branding. Below is the correct implementation we have to use to write style to the page.

No comments:

Post a Comment