+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Want to use my own CSS for blog and news.

Want to use my own CSS for blog and news.

4 posts, 0 answered
  1. Ryan Ternier
    Ryan Ternier avatar
    32 posts
    Registered:
    24 Nov 2005
    13 Jan 2010
    Link to this post
    I've read a bunch of posts that show how to throw in your own CSS file to use, and know about !important...which is very annoying if you have a large CSS file.

    <telerik:CssFileLink ID="CssFileLink1" FileName="PATH TO YOUR CSS" Media="screen" runat="server" />

    Is one thing I'd like to use, but I have no idea how or where to put it. Pretty much I want to take the Blog CSS and News CSS and throw them out the window  and replace them with my own.

    Any help would be great.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    13 Jan 2010
    Link to this post
    Hi Ryan Ternier,

    CssFileLink is a control that sets the path to your stylesheet. You need to place the control in the mode templates for the BlogPosts control( in your case) - ListPageMaster and ListPageDetails. These templates are external. You can download them from your account >> downloads section. More information about template mapping can be found at Mapping ContentViewDesigners and working with Presentation Modes.

    Greetings,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Ryan Ternier
    Ryan Ternier avatar
    32 posts
    Registered:
    24 Nov 2005
    13 Jan 2010
    Link to this post
    Thanks for the Help Ivan. If I had time i'd read the documentation.... but when given 12 hours to do a lot of things with a CMS System I have never used I tend to just ask questions to get what I need.

    I've downloaded those templates, and the templates themselves are fine. I can do many things with them as long as I don't have the default style sheet ruining it for me.

    I've looked at the documentation and help files but am still lost. Then I saw this:

    http://www.sitefinity.com/help/developer-manual/modifying-control-templates-markup.html

    and I thought hey that might be it... but it's blank :o

    So if I have:

    <telerik:CssFileLink ID="CssFileLink1" FileName="~/CustomCSS/BLogPost.css" Media="screen" runat="server" />

    Where do I need to stick that?
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    13 Jan 2010
    Link to this post
    Hello Ryan Ternier,

    "You need to place the control in the mode templates for the BlogPosts control( in your case) - ListPageMaster and ListPageDetails."

    Greetings,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Register for webinar
4 posts, 0 answered