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

Forums / Designing & Styling / Basic Theme Persisting?

Basic Theme Persisting?

5 posts, 1 answered
  1. Darrah
    Darrah avatar
    7 posts
    Registered:
    29 Jul 2011
    30 Aug 2011
    Link to this post
    Hello

    I've been fiddling around with sitefinity for a month or so now learning how to use the software and building test sites and pages. I managed to finally figure out how to style the radMenus so I made a theme, registered it, and began attaching it to the test pages I've made.

    The problem is that the basic theme keeps coming through somehow and I think it's affecting how theme images are displayed. I've set the default front end theme to be the custom theme. Every built in template I'm using is set to use the custom theme, I have not begun using custom master pages. The images are stored in the proper locations and the CSS is referencing them correctly so they should be displaying. I am using Firefox with the Web Developer and Firebug add-ons. Every time I go to view live site or preview a page, the theme images are not present. Once I start up Web Developer to view the CSS to find any problems, the pictures appear correctly.

    I am a bit confused as to why this is happening, and why the basic theme persists (I even went so far as to remove it completely under Settings to no effect, WebDev and Firebug still showed it being referenced). What am I missing?

    Thanks,
    Darrah
  2. Svetoslav Petsov
    Svetoslav Petsov avatar
    456 posts
    Registered:
    24 Sep 2012
    01 Sep 2011
    Link to this post
    Hi Darrah,

     The additional .css you see is loaded from a resource file by Sitefinity and it cannot be stopped. However, when you restyle some of its styling (body tag or RadMenu elements for example) the generated resource .css get overriden and your changes are applied. This works perfectly well for images, just make sure that your folder structure is like the one here:
    http://www.sitefinity.com/documentation/designers-guide/creating-a-theme.aspx
    Also, make sure that the links to the images are like the following:

    body
    {
        background-image: url("../Images/Lighthouse.jpg");
    }
    If your url is something different, an error may occur in its parsing and that could be the reason for Sitefinity not to load it.  All the best,
    Svetoslav Petsov
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

    Answered
  3. Darrah
    Darrah avatar
    7 posts
    Registered:
    29 Jul 2011
    01 Sep 2011
    Link to this post
    Hi Svetoslav,

    I went back and renamed all url instances like advised, reuploaded, and refreshed but the images still refused to show up. I could see no reason for it not to work since the file structure was correct per the documentation, so I began to wonder if I had registered it wrong in settings.

    Sure enough, I forgot the "YourTemplate" folder in the path "/App_Data/Sitefinty/WebsiteTemplates/YourTemplate/App_Themes/YourTheme". So I corrected the folder structure, updated the path and all is working as it should now.

    Thanks!
    Darrah
  4. Svetoslav Petsov
    Svetoslav Petsov avatar
    456 posts
    Registered:
    24 Sep 2012
    02 Sep 2011
    Link to this post
    Hi Darrah,

     I'm glad your problem was solved, can we close the support ticket now?

    Best wishes,
    Svetoslav Petsov
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  5. Darrah
    Darrah avatar
    7 posts
    Registered:
    29 Jul 2011
    02 Sep 2011
    Link to this post
    Hi Svetoslav
    Yes, we can close this ticket now.

    Darrah
5 posts, 1 answered