Custom CSS Class Not Rendering To Output

A place for discussion about skinning and design. Before posting questions here you should review the documentation about creating skins.

This thread is closed to new posts. You must sign in to post in the forums.
9/24/2012 10:50:28 PM
Gravatar
Total Posts 5

Custom CSS Class Not Rendering To Output

Hi,

I'm including Custom CSS Class in features such as the HTML and Blog features however the class name is not getting rendered to the final output.  I've searched the html output and there is no reference to my custom class name.  I'm basically trying to apply a border around the entire control.  

If I use my custom CSS class in the content of a HTML feature, then it renders, but I would rather the content editor not have to worry about this and was hoping to define the border using the Custom CSS Class. Plus I would also like this border around other selected features.

I'm using Version 2.3.9.0/SQL/2008R2/Full Trust.  Skin I am customising is bootstrap204.

Any advise on where to look as to why these aren't rendering?

Thanks,

Kent.

9/25/2012 9:14:55 AM
Gravatar
Total Posts 18439

Re: Custom CSS Class Not Rendering To Output

Hi Kent,

The bootstrap skin has some of the container panels turned off so they only render their contents and not the divs. The custom css class would be added to the container div but since it is turned off and not rendering the custom class is also not rendered.

Changing it is very easy, in theme.skin:

<portal:OuterWrapperPanel runat="server"
RenderContentsOnly="true"
/>

change that to false and it will solve it for the blog and probably other features, just can't remember if they all use the same panel but I think they do.

For background on this see also the article A More Flexible Set of Container Panels

Hope that helps,

Joe

9/25/2012 6:23:31 PM
Gravatar
Total Posts 5

Re: Custom CSS Class Not Rendering To Output

Thanks Joe,

That has me on the right track.  Enjoy the beer!

Cheers, Kent.

You must sign in to post in the forums. This thread is closed to new posts.