/themes/default/style/Common.css will not go away

rated by 0 users
This post has 6 Replies | 1 Follower

Not Ranked
Posts 10
Points 170
quintx Posted: Thu, Apr 19 2007 10:00 AM

Hi,

it could'nt be that it is so complicated. AAAAARRRRR

I copy the folder /Themes/default and rename the copy to Themes/newtheme

Then I go to the new theme.config rename the theme to newtheme and throw away anyting else in the file. Now it looks like this:

<Theme title="newtheme" previewImageUrl="~/themes/newtheme/preview.png" previewText="This is the default site theme.  Includes options for customizing fonts, colors, images, and layout.  Allows CSS to be overridden.">
</Theme>

Now I change the sites default theme to newtheme.

Now I go to the /Themes/newtheme/Common/master.master and change the following lines:

<CSControl:Style runat="server" visible = "true" href="~/themes/default/style/Common.css" />
<CSControl:Style runat="server" href="~/themes/default/style/common_print.css" media="print" />
<asp:ContentPlaceHolder runat="server" id="HeaderRegion" />
<CSControl:Style runat="server" href="~/themes/default/style/DynamicStyle.aspx" EnsureNotCachedOnPreview="true" />
<!--[if lte IE 6]>
   <CSControl:Style runat="server" href="~/themes/default/style/alpha.css" />
<![endif]-->
 

to this:

<CSControl:Style runat="server" visible = "true" href="~/themes/newtheme/style/Common.css" />
<CSControl:Style runat="server" href="~/themes/newtheme/style/common_print.css" media="print" />
<asp:ContentPlaceHolder runat="server" id="HeaderRegion" />
<CSControl:Style runat="server" href="~/themes/newtheme/style/DynamicStyle.aspx" EnsureNotCachedOnPreview="true" />
<!--[if lte IE 6]>
  <CSControl:Style runat="server" href="~/themes/newtheme/style/alpha.css" />
<![endif]-->

When I visit the rendered Home page the sourcecode looks like this:

<link rel="stylesheet" href="/themes/default/style/Common.css" type="text/css" media="screen" />
<link rel="stylesheet" href="/themes/default/style/common_print.css" type="text/css" media="print" />
<link rel="stylesheet" href="/Themes/newtheme/style/forum.css" type="text/css" media="screen" />
<link rel="stylesheet" href="/Themes/newtheme/style/gallery.css" type="text/css" media="screen" />
<link rel="stylesheet" href="/Themes/newtheme/style/forum_print.css" type="text/css" media="print" />
<link rel="stylesheet" href="/Themes/newtheme/style/gallery_print.css" type="text/css" media="print" />
<link rel="stylesheet" href="/themes/default/style/DynamicStyle.aspx" type="text/css" media="screen" />
<!--[if lte IE 6]>
<link rel="stylesheet" href="/themes/default/style/alpha.css" type="text/css" media="screen" />
<![endif]-->

What's going on here? I don't understand this!!!

Cheers,
Philipp
 

Not Ranked
Posts 32
Points 540
Sleepyhead replied on Thu, Apr 19 2007 11:17 AM

Heya,

I'm a novice in CS2007 theming myself, but I believe you need to edit the ~/themes/newtheme/style/DynamicStyle.aspx and modify the instances of

ThemeConfigurationDatas.GetThemeConfigurationData("Default")

to

ThemeConfigurationDatas.GetThemeConfigurationData("newtheme")

 

  • | Post Points: 20
Not Ranked
Posts 10
Points 170
quintx replied on Fri, Apr 20 2007 4:53 AM

 Hi again,

no that's not the solution. If I delete the line

<CSControl:Style runat="server" href="~/themes/newtheme/style/DynamicStyle.aspx" EnsureNotCachedOnPreview="true" /> 

from master.Master, I get the same result.

What a pain in the ass Angry

Cheers,
Philipp

  • | Post Points: 20
Top 50 Contributor
Male
Posts 536
Points 7,675

Philipp,

Try this...
 

<CSControl:Style runat="server" visible = "true" href="../style/Common.css" />
<CSControl:Style runat="server" href="../style/common_print.css" media="print" />
<asp:ContentPlaceHolder runat="server" id="HeaderRegion" />
<CSControl:Style runat="server" href="../style/DynamicStyle.aspx" EnsureNotCachedOnPreview="true" />
<!--[if lte IE 6]>
  <CSControl:Style runat="server" href="../style/alpha.css" />
<![endif]-->

 

  • | Post Points: 20
Top 50 Contributor
Male
Posts 536
Points 7,675

I just threw this together... I believe this might help.  I tested it and if I recorded the steps correctly it should work if you are looking to create a new theme.

http://chumlyworldnews.com/blogs/twxztips/archive/2007/04/20/create-a-custom-theme.aspx 

Not Ranked
Posts 5
Points 50
kwreid replied on Tue, Apr 24 2007 11:36 PM

 Thanks.  That helped!

  • | Post Points: 5
Not Ranked
Posts 10
Points 170
quintx replied on Wed, Apr 25 2007 2:46 AM

 Thank you. That's it! Smile

  • | Post Points: 5
Page 1 of 1 (7 items) | RSS
Powered by Community Server (Commercial Edition), by Telligent Systems

Copyright© 2008 Telligent Systems Inc. All rights reserved
CommunityServer.com  •  Telligent.com