More in this section
Forums / Designing & Styling / Editing .ascx file for Content Box

Editing .ascx file for Content Box

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.
3 posts, 1 answered
  1. Stepahnie
    Stepahnie avatar
    18 posts
    19 May 2016
    14 Jun 2016
    Link to this post
    I want to make minor changes, such as font type and colour changes to the design of the content box/ I have tried writing my own in html but I keep missing something. Does anyone know where to access the original file, so I can copy and tweak it? 
  2. Victor Leontyev
    Victor Leontyev avatar
    65 posts
    01 Jul 2014
    14 Jun 2016
    Link to this post

    Original layout for ContentBlock widget is:

    <%@ Control Language="C#" %>
    <%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI.PublicControls.BrowseAndEdit"
        Assembly="Telerik.Sitefinity" %>
    <asp:Literal ID="contentHtml" runat="server"></asp:Literal>
    <sf:BrowseAndEditToolbar ID="browseAndEditToolbar" runat="server" Mode="Edit" Visible="false">
    <asp:PlaceHolder ID="socialShareContainer" runat="server"></asp:PlaceHolder>

    You can easily find all default templates in Telerik.Sitefinity.Resources.dll. You can decompile Telerik.Sitefinity.Resources.dll and receive all necessary layouts.

    When you will create copy and tweak it, you need to specify location to new layout in Advanced Settings of Content Block widget

  3. Svetoslav Manchev
    Svetoslav Manchev avatar
    735 posts
    06 Sep 2017
    17 Jun 2016
    Link to this post

    In addition to the Victor's post you can check this sample how to override the HtmlField (the template used in content block) here:
    The template/s you need for your version could be found here:

    Svetoslav Manchev
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
3 posts, 1 answered