More in this section
Forums / General Discussions / Adding a Custom CSS in Blog

Adding a Custom CSS in Blog

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Mohit
    Mohit avatar
    19 posts
    04 Oct 2010
    26 Jan 2011
    Link to this post

    I want to change the look and feel of the Blog Module.I have written my own template for blog but I could not find how can I specify my own css file in blog file.There are a few tutorials available for this but all are for sitefinity 3.6 or 3.7. and I am not able to map these documents to sitefinity 4.0.

    I have one more Question about Blog control. In Blog-post template we have a field author that is preceded by "by". I want to change this "by" to something else, but it is some what related to literal control that displays this information. how can I change this?

    I would appreciate any help.

  2. Jordan
    Jordan avatar
    172 posts
    20 Oct 2015
    27 Jan 2011
    Link to this post
    Hello Mohit,

    There are few ways to specify the CSS files  for the blog template that you have created.
    1. To attach the CSS file in your master page (if you use such) - <link href="/Sitefinity/WebsiteTemplates/Mohit...". In this case the file will be loaded on all pages that are using this template.
    2. To attach the CSS file in the pages where you use the blog widget. Drop the CSS styles widget and enter the path to your css file - /Sitefinity/WebsiteTemplates/Mohit//. In this case the file will be loaded only on some pages.
    3. If you are not using the integrated widget editor but an external ascx template you can attach the CSS file just like in the first variant.

    To remove the "by" word before the author's name just remove the line from your template:

    <asp:Literal ID="Literal2" Text="<%$ Resources:Labels, By %>" runat="server" />

    Best wishes,
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered