2
votes

I am running the trial version of Sitefinity 4 RTM.

The great thing about Sitefinity 3.x was that I could port my masterpages from an existing site and they would just work with Sitefinity: Sitefinity did not inject stuff into the pages, or the content blocks.

However, Sitefinity 4 seems to be injecting its own stuff (styles, etc) into the page that screw up my layouts.

Also, for example the Sitefinity ContentBlocks wrap their content in a

tag.

Is there a way to stop this happening or would I have to rewrite my master pages and style sheets if using Sitefinity 4?

Other issues, eg, setting up a new site are great, but the above is a bit of a killer.

2

2 Answers

1
votes

First, you'll probably want to post this to the Sitefinity forums. You'll get a lot more attention there.

--

However, here are a few thoughts:

  1. Check out the Design and Skin settings for Sitefinity Widgets. By default, Sitefinity Widgets get associated with a Sitefinity Skin and some embedded stylesheets. By switching to a custom skin, you can define your own CSS.

  2. Feel free to modify the templates being used by Sitefinity widgets. You can define your own HTML.

I'm doing a webinar next week (Real World Project Development with Sitefinity 4.0) that will touch on some of these things. For those visiting here later, the video can be found on Telerik.TV.

Good luck.

0
votes

Once you integrate master page from an existing site, no need to add attribute block in the child page, provide only the body part. sitefinity by default generates attribute. Here is a link for documentation on how to use custom CSS. Hope this will be helpful: https://docs.sitefinity.com/custom-themes-and-templates-create-the-css-of-the-theme